Skip to content

Commit 4549bde

Browse files
authored
fix(mocha): workaround the ShadowRoot issue in Vue 3.0.5 (#6186)
1 parent 597b236 commit 4549bde

File tree

1 file changed

+2
-0
lines changed
  • packages/@vue/cli-plugin-unit-mocha

1 file changed

+2
-0
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ require('jsdom-global')(undefined, { pretendToBeVisual: true, url: 'http://local
22

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

0 commit comments

Comments
 (0)