Skip to content

Commit

Permalink
fix(mocha): workaround the SVGElement issue in Vue (#6400)
Browse files Browse the repository at this point in the history
related to vuejs/core#2929
  • Loading branch information
fangbinwei authored Apr 6, 2021
1 parent de175d4 commit 7838c0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@vue/cli-plugin-unit-mocha/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ require('jsdom-global')(undefined, { pretendToBeVisual: true, url: 'http://local
window.Date = Date
// https://github.com/vuejs/vue-next/pull/2943
global.ShadowRoot = window.ShadowRoot

global.SVGElement = window.SVGElement

0 comments on commit 7838c0d

Please sign in to comment.