Skip to content

Commit

Permalink
fix(mocha): workaround the SVGElement issue in Vue (vuejs#6400)
Browse files Browse the repository at this point in the history
related to vuejs/core#2929
  • Loading branch information
fangbinwei authored and jeneser committed Apr 11, 2021
1 parent bdd2c29 commit f3b8baa
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 f3b8baa

Please sign in to comment.