Skip to content

Commit

Permalink
fix(test): faulty .flowconfig
Browse files Browse the repository at this point in the history
The .js.flow tests were not working, because of a faulty config file.
  • Loading branch information
aleclarson committed Dec 16, 2018
1 parent a0bfaa6 commit e8fe4ba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 104 deletions.
8 changes: 4 additions & 4 deletions .flowconfig → __tests__/flow/.flowconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[ignore]
.*/node_modules

[include]
__tests__/flow
../../dist

[lints]
untyped-import=error

[options]
suppress_comment= \\(.\\|\n\\)*\\$ExpectError
2 changes: 1 addition & 1 deletion __tests__/flow/flow.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import produce, {
applyPatches,
Patch,
original
} from "../../src/index.js"
} from "../../dist/immer.js"

setAutoFreeze(true)
setUseProxies(true)
Expand Down
98 changes: 0 additions & 98 deletions __tests__/flow/ts.ts

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"watch": "jest --watch",
"test": "jest",
"test:perf": "NODE_ENV=production yarn-or-npm build && cd __performance_tests__ && babel-node add-data.js && babel-node todo.js && babel-node incremental.js",
"test:flow": "yarn-or-npm flow check",
"test:flow": "yarn-or-npm flow check __tests__/flow",
"test:dts": "tsc -p __tests__/tsconfig.json --noEmit",
"coveralls": "jest --coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf ./coverage",
"build": "rimraf dist/ && cross-env NODE_ENV=production rollup -c && cpx 'src/immer.{d.ts,js.flow}' dist -v"
Expand Down

0 comments on commit e8fe4ba

Please sign in to comment.