diff --git a/lib/cmd/test.js b/lib/cmd/test.js index d601ee56..dd04ef6a 100644 --- a/lib/cmd/test.js +++ b/lib/cmd/test.js @@ -94,6 +94,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.sort(); // auto add setup file as the first test file const setupFile = path.join(process.cwd(), 'test/.setup.js');