Skip to content

Commit

Permalink
Make jest bail out (#918)
Browse files Browse the repository at this point in the history
Currently the CI tests take around 5-7 minutes and are failing
regularly. The error usually occurs during one of the first check
suites but we still run all tests before reporting the error. In order
shorten the feedback cycle, I added the --bail flag to the test command
to make sure CI reports errors immediately.
  • Loading branch information
Dennis Sivia authored Aug 21, 2019
1 parent d615bb7 commit 7a5923d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"scripts": {
"start": "node --max-semi-space-size=64 ./lib/run.js",
"test": "node --expose-gc --max-old-space-size=4096 ./node_modules/.bin/jest --coverage --runInBand --logHeapUsage --forceExit",
"test": "node --expose-gc --max-old-space-size=4096 ./node_modules/.bin/jest --coverage --runInBand --logHeapUsage --bail --forceExit",
"test:watch": "node --expose-gc --max-old-space-size=4096 ./node_modules/.bin/jest --runInBand --logHeapUsage --forceExit --watch --notify",
"posttest": "npm run lint",
"lint": "eslint lib test",
Expand Down

0 comments on commit 7a5923d

Please sign in to comment.