add explicit exit code to the mocha script

This commit is contained in:
Michael Rawlings 2018-03-24 00:34:31 -07:00
parent dfec01ee72
commit b1631ba3c8

View File

@ -10,7 +10,7 @@
"precommit": "lint-staged",
"test": "npm run lint -s && npm run mocha -s",
"test-ci": "npm run check-format && npm run test-generate-coverage",
"mocha": "mocha --timeout 10000 --max-old-space-size=768 ./test/*/*.test.js",
"mocha": "mocha --timeout 10000 --max-old-space-size=768 ./test/*/*.test.js || exit 1",
"test-coverage": "npm run test-generate-coverage && nyc report --reporter=html && open ./coverage/index.html",
"test-generate-coverage": "nyc -asc npm test",
"lint": "eslint .",