Skip to content

armgit / mocha

Public Imported from GitHub
0

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

compiler extensions are added as watched extensions, removed non-standard extensions from watch regex, resolves #1221

David da Silva4705e04e3813
diff --git a/bin/_mocha b/bin/_mocha
index 3032690e..bcb1fb1d 100755
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -282,6 +282,7 @@ program.compilers.forEach(function(c) {
if (mod[0] == '.') mod = join(process.cwd(), mod);
require(mod);
extensions.push(ext);
+ program.watchExtensions.push(ext);
});
// requires
@@ -325,7 +326,7 @@ if (program.watch) {
});
- var watchFiles = utils.files(cwd, [ 'js', 'coffee', 'litcoffee', 'coffee.md' ].concat(program.watchExtensions));
+ var watchFiles = utils.files(cwd, [ 'js' ].concat(program.watchExtensions));
var runAgain = false;
function loadAndRun() {