diff --git a/packages/@vue/cli-plugin-unit-mocha/setup.js b/packages/@vue/cli-plugin-unit-mocha/setup.js index df81b0b514..accf1e4405 100644 --- a/packages/@vue/cli-plugin-unit-mocha/setup.js +++ b/packages/@vue/cli-plugin-unit-mocha/setup.js @@ -6,3 +6,6 @@ window.Date = Date global.ShadowRoot = window.ShadowRoot global.SVGElement = window.SVGElement + +// https://github.com/vuejs/test-utils/issues/1253 +global.XMLSerializer = window.XMLSerializer