Skip to content

Commit 7d65353

Browse files
committed
fix(jest): fix jest tests due to jsdom 11.12.0
close #1960
1 parent b60dd4b commit 7d65353

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ module.exports = api => {
3232
],
3333
'testMatch': [
3434
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
35-
]
35+
],
36+
// https://github.com/facebook/jest/issues/6766
37+
'testURL': 'http://localhost/'
3638
}
3739

3840
if (!api.hasPlugin('typescript')) {

0 commit comments

Comments
 (0)