Commit 2c742719 authored by Remy Suen's avatar Remy Suen

Expose the Node.js GC when running `mocha `scripts

The memory leak tests rely on the global.gc() function being
available. The GC needs to be exposed if the `mocha` or `mochaDebug`
script is being run.
parent d8fc828c
...@@ -77,8 +77,8 @@ ...@@ -77,8 +77,8 @@
"installDebug": "BUILD_DEBUG=true npm install", "installDebug": "BUILD_DEBUG=true npm install",
"lint": "jshint lib test/tests test/utils examples lifecycleScripts", "lint": "jshint lib test/tests test/utils examples lifecycleScripts",
"mergecov": "lcov-result-merger 'test/**/*.info' 'test/coverage/merged.lcov' && ./lcov-1.10/bin/genhtml test/coverage/merged.lcov --output-directory test/coverage/report", "mergecov": "lcov-result-merger 'test/**/*.info' 'test/coverage/merged.lcov' && ./lcov-1.10/bin/genhtml test/coverage/merged.lcov --output-directory test/coverage/report",
"mocha": "mocha test/runner test/tests --timeout 15000", "mocha": "mocha --expose-gc test/runner test/tests --timeout 15000",
"mochaDebug": "mocha --debug-brk test/runner test/tests --timeout 15000", "mochaDebug": "mocha --expose-gc --debug-brk test/runner test/tests --timeout 15000",
"postinstall": "node lifecycleScripts/postinstall", "postinstall": "node lifecycleScripts/postinstall",
"prepublish": "npm run babel", "prepublish": "npm run babel",
"rebuild": "node generate && npm run babel && node-gyp configure build", "rebuild": "node generate && npm run babel && node-gyp configure build",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment