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 and sodatea committed May 7, 2021
1 parent d41fb55 commit b39726e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@vue/cli-plugin-unit-mocha/setup.js
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 b39726e

Please sign in to comment.