Skip to content

Commit

Permalink
fix: fix jest test match
Browse files Browse the repository at this point in the history
fix #771
  • Loading branch information
yyx990803 committed Feb 3, 2018
1 parent 7871c5c commit 2c61d23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@vue/cli-plugin-unit-jest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 2c61d23

Please sign in to comment.