Skip to content

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

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

+2
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)