Skip to content

Commit 328fc23

Browse files
committed
Merge mocha updates from project template
In the previous merge, the replacement of mocha-ur2ue with --unhandled-rejections=strict was not merged correctly. Finish merge. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
1 parent c9c1d44 commit 328fc23

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,14 @@
4343
"lint-js": "eslint --report-unused-disable-directives . && echo ESLint passed.",
4444
"postpublish": "git -C doc push && git push --follow-tags origin master gh-pages && echo Remember to update GitHub Releases from CHANGELOG.md",
4545
"postversion": "rimraf doc && git clone -b gh-pages -l -q . doc && npm run doc && git -C doc add . && git -C doc commit -n -m \"Docs for v$npm_package_version\"",
46-
"preversion": "npm run test-cov && nyc check-coverage --statements 95 && depcheck --ignore-dirs doc --ignores mocha-ur2ue && david && node ./bin/git-branch-is.js master && hub-ci-status -vv --wait",
46+
"preversion": "npm run test-cov && nyc check-coverage --statements 95 && depcheck --ignore-dirs doc && david && node ./bin/git-branch-is.js master && hub-ci-status -vv --wait",
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": "mocha --parallel --require mocha-ur2ue --require ./test-lib/root-hooks.js --recursive test",
50+
"test-unit": "node --throw-deprecation --unhandled-rejections=strict node_modules/mocha/bin/mocha --parallel --require ./test-lib/root-hooks.js --recursive test",
5151
"posttest-unit": "rimraf test-repos",
52-
"test-unit-cov": "nyc npm run test-unit",
52+
"//": "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",
5354
"upload-cov": "codecov < ./coverage/lcov.info && coveralls < ./coverage/lcov.info",
5455
"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",
5556
"version-deps": "npm install conventional-changelog-cli david depcheck git-branch-is hub-ci-status"

0 commit comments

Comments
 (0)