☕️ Classic, reliable, trusted test framework for Node.js and the browser
Add `--trace-warnings` flag
Jakob Krigovsky9f7f7edef19e
diff --git a/bin/_mocha b/bin/_mochaindex bfd526e7..00514b5c 100755--- a/bin/_mocha+++ b/bin/_mocha@@ -107,6 +107,7 @@ program.option('--throw-deprecation', 'throw an exception anytime a deprecated function is used').option('--trace', 'trace function calls').option('--trace-deprecation', 'show stack traces on deprecations')+ .option('--trace-warnings', 'show stack traces on node process warnings').option('--use_strict', 'enforce strict mode').option('--watch-extensions <ext>,...', 'additional extensions to monitor with --watch', list, []).option('--delay', 'wait for async suite definition')diff --git a/bin/mocha b/bin/mochaindex 814d468a..8ba64a0a 100755--- a/bin/mocha+++ b/bin/mocha@@ -44,6 +44,7 @@ process.argv.slice(2).forEach(function (arg) {case '--log-timer-events':case '--throw-deprecation':case '--trace-deprecation':+ case '--trace-warnings':case '--use_strict':case '--allow-natives-syntax':case '--perf-basic-prof':