8000 fix(mocha): workaround the SVGElement issue in Vue (#6400) · vuejs/vue-cli@7838c0d · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7838c0d

Browse files
authored
fix(mocha): workaround the SVGElement issue in Vue (#6400)
related to vuejs/core#2929
1 parent de175d4 commit 7838c0d

File tree

1 file changed

+2
-0
lines changed
  • packages/@vue/cli-plugin-unit-mocha

1 file changed

+2
-0
lines changed

packages/@vue/cli-plugin-unit-mocha/setup.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ require('jsdom-global')(undefined, { pretendToBeVisual: true, url: 'http://local
44
window.Date = Date
55
// https://github.com/vuejs/vue-next/pull/2943
66
global.ShadowRoot = window.ShadowRoot
7+
8+
global.SVGElement = window.SVGElement

0 commit comments

Comments
 (0)
0