☕️ Classic, reliable, trusted test framework for Node.js and the browser
change default of ignoreLeaks to true. Closes #791
TJ Holowaychuk868b828d1eb9
diff --git a/lib/mocha.js b/lib/mocha.jsindex 8ce9e571..cd3d3032 100644--- a/lib/mocha.js+++ b/lib/mocha.js@@ -307,7 +307,7 @@ Mocha.prototype.run = function(fn){var options = this.options;var runner = new exports.Runner(suite);var reporter = new this._reporter(runner);- runner.ignoreLeaks = options.ignoreLeaks;+ runner.ignoreLeaks = false !== options.ignoreLeaks;runner.asyncOnly = options.asyncOnly;if (options.grep) runner.grep(options.grep, options.invert);if (options.globals) runner.globals(options.globals);