Skip to content

Commit

Permalink
compiler extensions are added as watched extensions, removed non-stan…
Browse files Browse the repository at this point in the history
…dard extensions from watch regex, resolves mochajs#1221
  • Loading branch information
dasilvacontin authored and tandrewnichols committed Dec 15, 2014
1 parent fff6a10 commit 780e050
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/_mocha
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ program.compilers.forEach(function(c) {
if (mod[0] == '.') mod = join(process.cwd(), mod);
require(mod);
extensions.push(ext);
program.watchExtensions.push(ext);
});

// requires
Expand Down Expand Up @@ -344,7 +345,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() {
Expand Down

0 comments on commit 780e050

Please sign in to comment.