Skip to content

Commit

Permalink
fix(jest): fix jest tests due to jsdom 11.12.0
Browse files Browse the repository at this point in the history
close #1960
  • Loading branch information
yyx990803 committed Jul 27, 2018
1 parent b60dd4b commit 7d65353
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@vue/cli-plugin-unit-jest/generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ module.exports = api => {
],
'testMatch': [
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
]
],
// https://github.com/facebook/jest/issues/6766
'testURL': 'http://localhost/'
}

if (!api.hasPlugin('typescript')) {
Expand Down

0 comments on commit 7d65353

Please sign in to comment.