fix: force mocha to exit when 0 tests (#42357)

Otherwise a command like

npm run test:curriculum -- -g 'Not a real title'

will spin forever
This commit is contained in:
Oliver Eyton-Williams
2021-06-04 14:15:00 +02:00
committed by GitHub
parent 00e5440882
commit 8290ad0bac

View File

@ -25,7 +25,7 @@
"delete-step": "cross-env CALLING_DIR=$INIT_CWD node ../tools/challenge-helper-scripts/delete-step",
"lint": "gulp lint",
"reorder-steps": "cross-env CALLING_DIR=$INIT_CWD node ../tools/challenge-helper-scripts/reorder-steps",
"test": "mocha --delay --reporter progress --bail",
"test": "mocha --delay --exit --reporter progress --bail",
"pretest:full-output": "npm run pretest",
"test:full-output": "cross-env FULL_OUTPUT=true mocha --delay --reporter progress"
},