mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 16:13:12 +09:00
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:
1 parent
38462d3069
commit
0a9ddef120
1 file changed
+1
-1
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
"repository": "https://github.com/clusterio/factorioClusterio",
|
"repository": "https://github.com/clusterio/factorioClusterio",
|
||||||
"main": "master.js",
|
"main": "master.js",
|
||||||
"scripts": {
|
"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",
|
"cover": "nyc npm run-script test",
|
||||||
"ci-cover": "nyc --reporter=lcovonly 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",
|
"start": "echo Run node client.js start [instance] to start slaves && node master.js",
|
||||||
|
|||||||
Reference in new issue
Block a user