Skip to content

Commit 9f7f7ed

Browse files
sonicdoeboneskull
authored andcommitted
Add --trace-warnings flag
1 parent 92561c8 commit 9f7f7ed

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

bin/_mocha

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ program
107107
.option('--throw-deprecation', 'throw an exception anytime a deprecated function is used')
108108
.option('--trace', 'trace function calls')
109109
.option('--trace-deprecation', 'show stack traces on deprecations')
110+
.option('--trace-warnings', 'show stack traces on node process warnings')
110111
.option('--use_strict', 'enforce strict mode')
111112
.option('--watch-extensions <ext>,...', 'additional extensions to monitor with --watch', list, [])
112113
.option('--delay', 'wait for async suite definition')

bin/mocha

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ process.argv.slice(2).forEach(function (arg) {
4444
case '--log-timer-events':
4545
case '--throw-deprecation':
4646
case '--trace-deprecation':
47+
case '--trace-warnings':
4748
case '--use_strict':
4849
case '--allow-natives-syntax':
4950
case '--perf-basic-prof':

0 commit comments

Comments
 (0)