From 0a9ddef1201f4c6e0a08a52a5f075b0fe4009ea5 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Fri, 23 Aug 2019 13:44:41 +0200 Subject: [PATCH] Check for globals leaking during test Add --check-leaks to mocha to have it report globals that leak during the testing. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2a652d46..118ca713 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "repository": "https://github.com/clusterio/factorioClusterio", "main": "master.js", "scripts": { - "test": "mocha --exit -R spec \"./{,!(node_modules)/**/}*.spec.js\" || true", + "test": "mocha --exit --check-leaks -R spec \"./{,!(node_modules)/**/}*.spec.js\" || true", "cover": "nyc npm run-script test", "ci-cover": "nyc --reporter=lcovonly npm run-script test", "start": "echo Run node client.js start [instance] to start slaves && node master.js",