Skip to content

Commit 7d65353

Browse files
committed
fix(jest): fix jest tests due to jsdom 11.12.0
close vuejs#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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy