Skip to content

Commit

Permalink
fix: jest should only run files in given directory
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 28, 2018
1 parent 01edb46 commit 4a7fd64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli-plugin-unit-jest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 4a7fd64

Please sign in to comment.