Skip to content

Commit

Permalink
fix(mocha): workaround the ShadowRoot issue in Vue 3.0.5 (#6186)
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea committed Jan 6, 2021
1 parent 76a0418 commit e79cc13
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 @@ -2,3 +2,5 @@ require('jsdom-global')(undefined, { pretendToBeVisual: true, url: 'http://local

// https://github.com/vuejs/vue-test-utils/issues/936
window.Date = Date
// https://github.com/vuejs/vue-next/pull/2943
global.ShadowRoot = window.ShadowRoot

0 comments on commit e79cc13

Please sign in to comment.