From ce97e62304e884c4277aaa1b605f735253e4205b Mon Sep 17 00:00:00 2001 From: Martijn Jacobs Date: Wed, 13 Apr 2022 10:47:45 +0200 Subject: [PATCH] fix: add XMLSerializer to the global scope (#7101) --- packages/@vue/cli-plugin-unit-mocha/setup.js | 3 +++ 1 file changed, 3 insertions(+) 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