Skip to content

Commit

Permalink
--allow-uncaught cli option
Browse files Browse the repository at this point in the history
  • Loading branch information
lrowe authored and boneskull committed May 9, 2017
1 parent fb1e083 commit 4d1d91d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/_mocha
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ program
.option('--trace-deprecation', 'show stack traces on deprecations')
.option('--use_strict', 'enforce strict mode')
.option('--watch-extensions <ext>,...', 'additional extensions to monitor with --watch', list, [])
.option('--delay', 'wait for async suite definition');
.option('--delay', 'wait for async suite definition')
.option('--allow-uncaught', 'enable uncaught errors to propagate');

program._name = 'mocha';

Expand Down Expand Up @@ -314,6 +315,12 @@ if (program.delay) {
mocha.delay();
}

// --allow-uncaught

if (program.allowUncaught) {
mocha.allowUncaught();
}

// --globals

mocha.globals(globals);
Expand Down

0 comments on commit 4d1d91d

Please sign in to comment.