Skip to content

Commit

Permalink
Update flow-bin, jest and typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
zertosh committed Sep 9, 2018
1 parent d64a920 commit 0f54a01
Show file tree
Hide file tree
Showing 4 changed files with 1,453 additions and 882 deletions.
2 changes: 1 addition & 1 deletion __tests__/__fixtures__/flow-package/.flowconfig
Expand Up @@ -2,4 +2,4 @@
../../..

[version]
0.33.0
0.80.0
27 changes: 16 additions & 11 deletions __tests__/__snapshots__/typechecker-test.js.snap
Expand Up @@ -3,20 +3,25 @@
exports[`nullthrows with flow 1`] = `""`;

exports[`nullthrows with flow 2`] = `
"__tests__/__fixtures__/flow-package/index.js:11
11: var bad1: Object = obj;
^^^ null. This type is incompatible with
11: var bad1: Object = obj;
^^^^^^ object type
"Error --------------------------------------------------------------- __tests__/__fixtures__/flow-package/index.js:11:20
__tests__/__fixtures__/flow-package/index.js:11
11: var bad1: Object = obj;
^^^ undefined. This type is incompatible with
11: var bad1: Object = obj;
^^^^^^ object type
Cannot assign \`obj\` to \`bad1\` because null or undefined [1] is incompatible with object type [2].
__tests__/__fixtures__/flow-package/index.js:11:20
11| var bad1: Object = obj;
^^^
Found 2 errors
References:
__tests__/__fixtures__/flow-package/index.js:5:16
5| var obj = ({}: ?Object);
^^^^^^^ [1]
__tests__/__fixtures__/flow-package/index.js:11:11
11| var bad1: Object = obj;
^^^^^^ [2]
Found 1 error
"
`;

Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -23,9 +23,9 @@
},
"dependencies": {},
"devDependencies": {
"flow-bin": "0.33.0",
"jest": "^21.0.0",
"typescript": "2.7.2"
"flow-bin": "0.80.0",
"jest": "^23.5.0",
"typescript": "3.0.3"
},
"jest": {
"testEnvironment": "node",
Expand Down

0 comments on commit 0f54a01

Please sign in to comment.