Skip to content

Commit 739372c

Browse files
committed
Run mocha without --parallel
Invoking mocha without --parallel in test-unit-cov works well in other projects, but causes the pretest-unit/posttest-unit scripts not to be run. Rather than duplicating these (or adding forwarding scripts), minimize duplication by removing --parallel in test-unit. Signed-off-by: Kevin Locke <[email protected]>
1 parent 328fc23 commit 739372c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747
"test": "npm run lint && npm run test-unit",
4848
"test-cov": "npm run lint && npm run test-unit-cov",
4949
"pretest-unit": "node test-bin/set-up-test-repos.js",
50-
"test-unit": "node --throw-deprecation --unhandled-rejections=strict node_modules/mocha/bin/mocha --parallel --require ./test-lib/root-hooks.js --recursive test",
51-
"posttest-unit": "rimraf test-repos",
5250
"//": "Note: nyc incompatible with --parallel. See https://github.com/istanbuljs/nyc/issues/1328 and https://github.com/mochajs/mocha/issues/4372",
53-
"test-unit-cov": "nyc --reporter=lcov --reporter=text node --throw-deprecation --unhandled-rejections=strict node_modules/mocha/bin/mocha --require ./test-lib/root-hooks.js --recursive test",
51+
"test-unit": "node --throw-deprecation --unhandled-rejections=strict node_modules/mocha/bin/mocha --require ./test-lib/root-hooks.js --recursive test",
52+
"posttest-unit": "rimraf test-repos",
53+
"test-unit-cov": "nyc --reporter=lcov --reporter=text npm run test-unit",
5454
"upload-cov": "codecov < ./coverage/lcov.info && coveralls < ./coverage/lcov.info",
5555
"version": "npm run changelog && echo && echo === Please edit CHANGELOG.md as desired, then exit === && echo && $npm_config_shell && git commit -m \"Update CHANGELOG.md for $npm_package_version\" CHANGELOG.md",
5656
"version-deps": "npm install conventional-changelog-cli david depcheck git-branch-is hub-ci-status"

0 commit comments

Comments
 (0)