Skip to content

Commit 482d09c

Browse files
jmreidyindexzero
authored andcommitted
adding a filter to the watch logic, so that only test files are run
1 parent f77e4bd commit 482d09c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/vows

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ if (! options.watch) {
364364

365365
var files = (specFileExt.test(file) ? [file] : paths(testFolder)).map(function (p) {
366366
return path.join(process.cwd(), p);
367+
}).filter(function (p) {
368+
return specFileExt.test(p);
367369
}).map(function (p) {
368370
var cache = require.main.moduleCache || require.cache;
369371
if (cache[p]) { delete(cache[p]) }

0 commit comments

Comments
 (0)