|
43 | 43 | "lint-js": "eslint --report-unused-disable-directives . && echo ESLint passed.", |
44 | 44 | "postpublish": "git -C doc push && git push --follow-tags origin master gh-pages && echo Remember to update GitHub Releases from CHANGELOG.md", |
45 | 45 | "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", |
47 | 47 | "test": "npm run lint && npm run test-unit", |
48 | 48 | "test-cov": "npm run lint && npm run test-unit-cov", |
49 | 49 | "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", |
51 | 51 | "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", |
53 | 54 | "upload-cov": "codecov < ./coverage/lcov.info && coveralls < ./coverage/lcov.info", |
54 | 55 | "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", |
55 | 56 | "version-deps": "npm install conventional-changelog-cli david depcheck git-branch-is hub-ci-status" |
|
0 commit comments