Skip to content

Commit

Permalink
adding a filter to the watch logic, so that only test files are run
Browse files Browse the repository at this point in the history
  • Loading branch information
jmreidy authored and indexzero committed Nov 25, 2011
1 parent f77e4bd commit 482d09c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/vows
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ if (! options.watch) {

var files = (specFileExt.test(file) ? [file] : paths(testFolder)).map(function (p) {
return path.join(process.cwd(), p);
}).filter(function (p) {
return specFileExt.test(p);
}).map(function (p) {
var cache = require.main.moduleCache || require.cache;
if (cache[p]) { delete(cache[p]) }
Expand Down

0 comments on commit 482d09c

Please sign in to comment.