diff --git a/npm/vue/src/index.ts b/npm/vue/src/index.ts index 2476ba70c29e..6671a7d0d9e5 100644 --- a/npm/vue/src/index.ts +++ b/npm/vue/src/index.ts @@ -39,8 +39,6 @@ type CyMountOptions = Omit, 'atta } } & Partial -let initialInnerHtml = '' - Cypress.on('run:start', () => { // `mount` is designed to work with component testing only. // it assumes ROOT_ID exists, which is not the case in e2e. @@ -52,7 +50,6 @@ Cypress.on('run:start', () => { return } - initialInnerHtml = document.head.innerHTML Cypress.on('test:before:run', () => { Cypress.vueWrapper?.unmount() // @ts-ignore @@ -64,7 +61,6 @@ Cypress.on('run:start', () => { } el.innerHTML = '' - document.head.innerHTML = initialInnerHtml }) })