Skip to content

Commit

Permalink
(bin) fix auto-discover mode
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Dec 29, 2010
1 parent 3d12553 commit f0f823d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/vows
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ if (args.length === 0 || options.watch) {
msg('bin', 'discovered', "./" + testFolder);

if (args.length === 0) {
args = paths(testFolder);
args = paths(testFolder).filter(function (f) {
return new(RegExp)('-' + testFolder + '.(js|coffee)$').test(f);
});

if (options.watch) {
args = args.concat(paths('lib'),
Expand Down

0 comments on commit f0f823d

Please sign in to comment.