Skip to content

Commit 7278119

Browse files
ScottFreeCodeboneskull
authored andcommitted
Switch default from forced exit to no-exit
Allows `--exit` to override and force exit as before. Resolves #2879
1 parent c5d69e0 commit 7278119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/_mocha

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ program
9494
.option('--inspect-brk', 'activate devtools in chrome and break on the first line')
9595
.option('--interfaces', 'display available interfaces')
9696
.option('--no-deprecation', 'silence deprecation warnings')
97-
.option('--no-exit', 'require a clean shutdown of the event loop: mocha will not call process.exit')
97+
.option('--exit', 'force shutdown of the event loop after test run: mocha will call process.exit')
9898
.option('--no-timeouts', 'disables timeouts, given implicitly with --debug')
9999
.option('--no-warnings', 'silence all node process warnings')
100100
.option('--opts <path>', 'specify opts path', 'test/mocha.opts')

0 commit comments

Comments
 (0)