Skip to content

Commit 4a7fd64

Browse files
committed
fix: jest should only run files in given directory
fix #740
1 parent 01edb46 commit 4a7fd64

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = api => {
1919

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

2525
const argv = [

0 commit comments

Comments
 (0)