Skip to content

Commit 0ebf00d

Browse files
committed
fix: add XMLSerializer to the global scope
In @vue/test-utils 2.0.0rc18, The ussage of XMLSerializer was introduced: https://github.com/vuejs/test-utils/blob/d86cbc333de7b2ec1208f5d3c65e0879671dd01e/src/utils/stringifyNode.ts#L4 XMLSerializer needs to be available as a global so cli-plugin-unit-mocha will stay compatible with newer versions of @vue/test-utils.
1 parent 940e436 commit 0ebf00d

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ window.Date = Date
66
global.ShadowRoot = window.ShadowRoot
77

88
global.SVGElement = window.SVGElement
9+
10+
// https://github.com/vuejs/test-utils/issues/1253
11+
global.XMLSerializer = window.XMLSerializer

0 commit comments

Comments
 (0)