Skip to content

Commit e0dcf35

Browse files
committed
fix(mocha): workaround the dart-sass stylesheet load issue
1 parent 2d3116e commit e0dcf35

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ window.Date = Date
55
// https://github.com/vuejs/vue-next/pull/2943
66
global.ShadowRoot = window.ShadowRoot
77

8+
// https://github.com/vuejs/vue-next/issues/3590
89
global.SVGElement = window.SVGElement
10+
11+
// https://github.com/mbullington/node_preamble.dart/issues/26
12+
process.versions.electron = ''

0 commit comments

Comments
 (0)