Skip to content

Navigation Menu

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 b39726e

Browse filesBrowse files
fangbinweihaoqunjiang
authored andcommitted
fix(mocha): workaround the SVGElement issue in Vue (#6400)
related to vuejs/core#2929
1 parent d41fb55 commit b39726e
Copy full SHA for b39726e

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
  • packages/@vue/cli-plugin-unit-mocha
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

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

Copy file name to clipboardExpand all lines: packages/@vue/cli-plugin-unit-mocha/setup.js
+2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.