Skip to content

Commit

Permalink
Add --trace-warnings flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicdoe authored and boneskull committed May 12, 2017
1 parent 92561c8 commit 9f7f7ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/_mocha
Expand Up @@ -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')
Expand Down
1 change: 1 addition & 0 deletions bin/mocha
Expand Up @@ -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':
Expand Down

1 comment on commit 9f7f7ed

@stefanpenner
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.