Skip to content

Commit d12cd5e

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

File tree

1 file changed

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

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@ 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/vuejs/vue-cli/issues/6427
12+
// https://github.com/mbullington/node_preamble.dart/issues/26
13+
process.versions.electron = ''

0 commit comments

Comments
 (0)