fix: fix jest test match

fix #771
This commit is contained in:
Evan You
2018-02-03 14:21:57 -05:00
parent 7871c5c23d
commit 2c61d236d7

View File

@@ -18,8 +18,8 @@ module.exports = api => {
const jestBinPath = require.resolve('jest/bin/jest')
let testMatch = []
if (!args._.length && api.hasPlugin('typescript')) {
testMatch = [`--testMatch`, `<rootDir>/test/unit/**/*.spec.(ts|tsx|js)`]
if (!args._.length) {
testMatch = [`--testMatch`, `<rootDir>/(test/unit/**/*.spec.(ts|tsx|js)|**/__tests__/*.(ts|tsx|js))`]
}
const argv = [