From 7278119679a48d09ba77b46f0891ee103cc2827c Mon Sep 17 00:00:00 2001 From: Scott Santucci Date: Thu, 28 Sep 2017 22:56:50 -0400 Subject: [PATCH] Switch default from forced exit to no-exit Allows `--exit` to override and force exit as before. Resolves #2879 --- bin/_mocha | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/_mocha b/bin/_mocha index a4d584d978..4b8fd5e462 100755 --- a/bin/_mocha +++ b/bin/_mocha @@ -94,7 +94,7 @@ program .option('--inspect-brk', 'activate devtools in chrome and break on the first line') .option('--interfaces', 'display available interfaces') .option('--no-deprecation', 'silence deprecation warnings') - .option('--no-exit', 'require a clean shutdown of the event loop: mocha will not call process.exit') + .option('--exit', 'force shutdown of the event loop after test run: mocha will call process.exit') .option('--no-timeouts', 'disables timeouts, given implicitly with --debug') .option('--no-warnings', 'silence all node process warnings') .option('--opts ', 'specify opts path', 'test/mocha.opts')