Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

fix(bin/_mocha): Make `--watch-extensions` default to 'js'

Paul Roebuck9d407deb77d9
diff --git a/bin/_mocha b/bin/_mocha
index 97542ac5..fe1cdcc8 100755
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -247,7 +247,7 @@ program
'--watch-extensions <ext>,...',
'specify extensions to monitor with --watch',
list,
- []
+ ['js']
)
.option('--delay', 'wait for async suite definition')
.option('--allow-uncaught', 'enable uncaught errors to propagate')