From e73c56952cdbd0f925e8aea1ad1b3098e9ccc90e Mon Sep 17 00:00:00 2001 From: Haoliang Gao Date: Mon, 2 Apr 2018 02:01:33 +0800 Subject: [PATCH] fix: should ignore fixtures and node_modules (#96) --- lib/cmd/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cmd/test.js b/lib/cmd/test.js index c2ed834d..294443d1 100644 --- a/lib/cmd/test.js +++ b/lib/cmd/test.js @@ -102,7 +102,7 @@ class TestCommand extends Command { } // expand glob and skip node_modules and fixtures - files = globby.sync(files.concat('!test/**/{fixtures, node_modules}/**/*.test.js')); + files = globby.sync(files.concat([ '!test/fixtures', '!test/node_modules' ])); files.sort(); // auto add setup file as the first test file