This commit is contained in:
Dylan Vorster
2017-11-20 21:24:43 +02:00
parent c1ee66d192
commit 13d828e18c
4 changed files with 21 additions and 3 deletions

View File

@ -32,4 +32,5 @@ jobs:
key: v1-dependencies-{{ checksum "package.json" }} key: v1-dependencies-{{ checksum "package.json" }}
# run tests! # run tests!
- run: yarn run storybook:build
- run: yarn test - run: yarn test

View File

@ -28,7 +28,7 @@
"lintjs": "prettier --use-tabs --write \"{src,demos}/**/*.{ts,tsx}\" --print-width 120" "lintjs": "prettier --use-tabs --write \"{src,demos}/**/*.{ts,tsx}\" --print-width 120"
}, },
"dependencies": { "dependencies": {
"@types/jest": "^21.1.6", "@types/puppeteer": "^0.13.0",
"closest": "^0.0.1", "closest": "^0.0.1",
"lodash": "^4.17.4", "lodash": "^4.17.4",
"react": "^16.1.1" "react": "^16.1.1"
@ -38,6 +38,7 @@
"@storybook/addon-notes": "^3.2.15", "@storybook/addon-notes": "^3.2.15",
"@storybook/react": "^3.2.15", "@storybook/react": "^3.2.15",
"@storybook/storybook-deployer": "^2.0.0", "@storybook/storybook-deployer": "^2.0.0",
"@types/jest": "^21.1.6",
"@types/lodash": "^4.14.85", "@types/lodash": "^4.14.85",
"@types/node": "^8.0.52", "@types/node": "^8.0.52",
"@types/react": "^16.0.22", "@types/react": "^16.0.22",

View File

@ -1,5 +1,11 @@
import "jest"; import "jest";
import * as puppeteer from "puppeteer"
it('subtracts 5 - 1 to equal 4 in TypeScript', () => { it('should load the diagram with no issues', async () => {
expect(1).toBe(1) let browser = await puppeteer.launch({
headless: false
});
let page = await browser.newPage();
await page.goto('file://'+__dirname+'/../.out/index.html');
await browser.close();
}); });

View File

@ -171,10 +171,20 @@
version "4.14.85" version "4.14.85"
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.85.tgz#a16fbf942422f6eca5622b6910492c496c35069b" resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.85.tgz#a16fbf942422f6eca5622b6910492c496c35069b"
"@types/node@*":
version "8.0.53"
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.53.tgz#396b35af826fa66aad472c8cb7b8d5e277f4e6d8"
"@types/node@^8.0.52": "@types/node@^8.0.52":
version "8.0.52" version "8.0.52"
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.52.tgz#8e7f47747868e7687f2cd4922966e2d6af78d22d" resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.52.tgz#8e7f47747868e7687f2cd4922966e2d6af78d22d"
"@types/puppeteer@^0.13.0":
version "0.13.0"
resolved "https://registry.yarnpkg.com/@types/puppeteer/-/puppeteer-0.13.0.tgz#a12e791f15ab92f6160e1e8a295fd35dbf9cb90d"
dependencies:
"@types/node" "*"
"@types/react@^16.0.18", "@types/react@^16.0.20", "@types/react@^16.0.22": "@types/react@^16.0.18", "@types/react@^16.0.20", "@types/react@^16.0.22":
version "16.0.22" version "16.0.22"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.0.22.tgz#19ad106e124aceebd2b4d430a278d55413ee8759" resolved "https://registry.yarnpkg.com/@types/react/-/react-16.0.22.tgz#19ad106e124aceebd2b4d430a278d55413ee8759"