Skip to content

Commit

Permalink
fix(mocha): workaround the dart-sass stylesheet load issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fangbinwei committed Apr 26, 2021
1 parent 2d3116e commit e0dcf35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/@vue/cli-plugin-unit-mocha/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ window.Date = Date
// https://github.com/vuejs/vue-next/pull/2943
global.ShadowRoot = window.ShadowRoot

// https://github.com/vuejs/vue-next/issues/3590
global.SVGElement = window.SVGElement

// https://github.com/mbullington/node_preamble.dart/issues/26
process.versions.electron = ''

0 comments on commit e0dcf35

Please sign in to comment.