Skip to content

Commit 2c61d23

Browse files
committed
fix: fix jest test match
fix #771
1 parent 7871c5c commit 2c61d23

File tree

1 file changed

+2
-2
lines changed
  • packages/@vue/cli-plugin-unit-jest

1 file changed

+2
-2
lines changed

packages/@vue/cli-plugin-unit-jest/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ module.exports = api => {
1818
const jestBinPath = require.resolve('jest/bin/jest')
1919

2020
let testMatch = []
21-
if (!args._.length && api.hasPlugin('typescript')) {
22-
testMatch = [`--testMatch`, `<rootDir>/test/unit/**/*.spec.(ts|tsx|js)`]
21+
if (!args._.length) {
22+
testMatch = [`--testMatch`, `<rootDir>/(test/unit/**/*.spec.(ts|tsx|js)|**/__tests__/*.(ts|tsx|js))`]
2323
}
2424

2525
const argv = [

0 commit comments

Comments
 (0)