From b187423d274edc16a855a0d3409867bf6b30240e Mon Sep 17 00:00:00 2001 From: Comedy Date: Wed, 13 Dec 2017 15:49:29 +0000 Subject: [PATCH] Return proper error if no test dir found --- lib/commands/test.js | 2 ++ 1 file changed, 2 insertions(+) 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; });