fix: jest should only run files in given directory

fix #740
This commit is contained in:
Evan You
2018-01-27 21:27:24 -05:00
parent 01edb46b8c
commit 4a7fd642e9
+1 -1
View File
@@ -19,7 +19,7 @@ module.exports = api => {
let testMatch = []
if (!args._.length && api.hasPlugin('typescript')) {
testMatch = [`--testMatch`, `<rootDir>/**/*.spec.(ts|tsx|js)`]
testMatch = [`--testMatch`, `<rootDir>/test/unit/**/*.spec.(ts|tsx|js)`]
}
const argv = [