Check for globals leaking during test

Add --check-leaks to mocha to have it report globals that leak during
the testing.
This commit is contained in:
Hornwitser committed 2019-08-24 11:02:50 +02:00
1 parent 38462d3069
commit 0a9ddef120
1 file changed
+1 -1
+1 -1
View File
@@ -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",