From 72d3cac89f4a3149764a491e4911dbe0062094aa Mon Sep 17 00:00:00 2001 From: HardiReady Date: Sun, 21 Oct 2018 15:48:19 +0200 Subject: [PATCH] Prove flag to force exit mocha on test run --- api/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/package.json b/api/package.json index af43ef9..dc4d785 100644 --- a/api/package.json +++ b/api/package.json @@ -10,7 +10,7 @@ "dev": "DEBUG='cc:*' NODE_ENV=dev nodemon server.js", "eslint": "$(npm bin)/eslint", "lint": "eslint '**/*.js'", - "test": "mocha --require ./test/config/spec_helper.js", + "test": "mocha --exit --require ./test/config/spec_helper.js", "start-test": "DEBUG='cc:*' NODE_ENV=unitTest node server.js", "start-api-test": "rm -rf ./apib/dredd/data/tmp-resource && cp -r ./apib/dredd/data/resource ./apib/dredd/data/tmp-resource && DEBUG='cc:*' NODE_ENV=dreddTest node server.js", "api:compile-docs": "$(npm bin)/hercule apib/dev-doc.apib -o apib/documentation.apib",