From 9f7f7edef19e5de7fc6a9f1ce969bf8579fa61ee Mon Sep 17 00:00:00 2001 From: Jakob Krigovsky Date: Thu, 9 Mar 2017 16:31:21 +0100 Subject: [PATCH] Add `--trace-warnings` flag --- bin/_mocha | 1 + bin/mocha | 1 + 2 files changed, 2 insertions(+) diff --git a/bin/_mocha b/bin/_mocha index bfd526e774..00514b5ce0 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 ,...', 'additional extensions to monitor with --watch', list, []) .option('--delay', 'wait for async suite definition') diff --git a/bin/mocha b/bin/mocha index 814d468ac7..8ba64a0a06 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':