diff --git a/packages/vue/__tests__/mathmlNamespace.spec.ts b/packages/vue/__tests__/mathmlNamespace.spec.ts index 58dd26389f1..ea24cafa9c8 100644 --- a/packages/vue/__tests__/mathmlNamespace.spec.ts +++ b/packages/vue/__tests__/mathmlNamespace.spec.ts @@ -8,6 +8,10 @@ import { render, h, ref, nextTick } from '../src' describe('MathML support', () => { + afterEach(() => { + document.body.innerHTML = '' + }) + test('should mount elements with correct html namespace', () => { const root = document.createElement('div') document.body.appendChild(root) diff --git a/packages/vue/__tests__/svgNamespace.spec.ts b/packages/vue/__tests__/svgNamespace.spec.ts index 198c9b6fd4b..9d2159199ad 100644 --- a/packages/vue/__tests__/svgNamespace.spec.ts +++ b/packages/vue/__tests__/svgNamespace.spec.ts @@ -8,6 +8,10 @@ import { render, h, ref, nextTick } from '../src' describe('SVG support', () => { + afterEach(() => { + document.body.innerHTML = '' + }) + test('should mount elements with correct html namespace', () => { const root = document.createElement('div') document.body.appendChild(root)