From cf4e198d0084bdd338c42c8d0c05d4b2fc0bfd71 Mon Sep 17 00:00:00 2001 From: Pavel Diatchenko Date: Thu, 17 Sep 2020 14:10:56 +1200 Subject: [PATCH] Allow passing test cli args. Before, no CLI args would be passed when running `npm test`. Keeping the `mocha` at the end of the test script allows passing CLI args to Mocha. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 74b7cb9b..436c36bd 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "debug": "node --prof-process --preprocess -j isolate*.log > v8data.json && rm isolate*.log && echo 'drag & drop ./v8data.json into https://mapbox.github.io/flamebearer/'", "https": "HTTPS_KEY=test/https/server.key HTTPS_CERT=test/https/server.crt npm start", "prepublishOnly": "npm run unbuild", - "test": "mocha && echo 'Did you run PANIC holy-grail, 1~X, on-recover, etc.?'", + "test": "echo 'Did you run PANIC holy-grail, 1~X, on-recover, etc.?' && mocha", "testsea": "mocha test/sea/sea.js", "testaxe": "mocha test/axe/holy-grail.js", "e2e": "mocha e2e/distributed.js",