From 8290ad0bac58c284855dc13ecf44e4c12d0ad79a Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Fri, 4 Jun 2021 14:15:00 +0200 Subject: [PATCH] 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 --- curriculum/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/package.json b/curriculum/package.json index c6d7f25e2d..bb04081280 100644 --- a/curriculum/package.json +++ b/curriculum/package.json @@ -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" },