From a0a2bd30e400cde139b2c86b9112e1bc7844cf9e Mon Sep 17 00:00:00 2001 From: Paul Roebuck Date: Sat, 21 Apr 2018 06:40:46 -0500 Subject: [PATCH] fix(bin/_mocha): Make `--watch-extensions` default to 'js' The change in c580294 to `--watch-extensions` failed to set a default value. This change specifies that default value. Fixes #3336 --- bin/_mocha | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/_mocha b/bin/_mocha index bef97990f7..5ef61d63ba 100755 --- a/bin/_mocha +++ b/bin/_mocha @@ -201,7 +201,7 @@ program .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 ,...', 'specify extensions to monitor with --watch', list, []) + .option('--watch-extensions ,...', 'specify extensions to monitor with --watch', list, ['js']) .option('--delay', 'wait for async suite definition') .option('--allow-uncaught', 'enable uncaught errors to propagate') .option('--forbid-only', 'causes test marked with only to fail the suite')