Skip to content

Commit

Permalink
fix: run mocha with --exit flag
Browse files Browse the repository at this point in the history
For some reason the tests hang when running on node 16+. Using the `--exit`
flag forces mocha to quit after the test run. This is definitely a bandaid but
all attempts to find the root cause have so far been unsuccessful. :/
  • Loading branch information
adamgruber committed Mar 25, 2022
1 parent 44d92d4 commit cba5a2c
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 @@ -6,7 +6,7 @@
"lint": "eslint src test --ext js",
"stylelint": "stylelint src/**/*.css src/components/**/*.css",
"pretest": "npm run lint",
"test": "cross-env NODE_ENV=test nyc mocha \"test/spec/**/*.test.js\"",
"test": "cross-env NODE_ENV=test nyc mocha \"test/spec/**/*.test.js\" --exit",
"tdd": "cross-env NODE_ENV=test nyc mocha --watch \"test/spec/**/*.test.js\"",
"test:single": "cross-env NODE_ENV=test nyc mocha ",
"test:functional": "cross-env NODE_ENV=test node ./test-functional/index.js",
Expand Down

0 comments on commit cba5a2c

Please sign in to comment.