diff --git a/lib/commands/test.js b/lib/commands/test.js index f076636..ae48bdc 100644 --- a/lib/commands/test.js +++ b/lib/commands/test.js @@ -44,6 +44,8 @@ var command = { }; getFiles(function(err, files) { + if (err) return done(err); + files = files.filter(function(file) { return file.match(config.test_file_extension_regexp) != null; });