diff --git a/packages/astro/e2e/lit-component.test.js b/packages/astro/e2e/lit-component.test.js index d73005b278f7..37f8d9eed852 100644 --- a/packages/astro/e2e/lit-component.test.js +++ b/packages/astro/e2e/lit-component.test.js @@ -8,10 +8,6 @@ const test = testFactory({ // TODO: configure playwright to handle web component APIs // https://github.com/microsoft/playwright/issues/14241 test.describe('Lit components', () => { - test.beforeAll(() => { - delete globalThis.window; - }); - test.describe('Development', () => { let devServer; const t = test.extend({}); @@ -158,7 +154,6 @@ test.describe('Lit components', () => { const t = test.extend({}); t.beforeAll(async ({ astro }) => { - delete globalThis.window; // Playwright's Node version doesn't have these functions, so stub them. process.stdout.clearLine = () => {}; process.stdout.cursorTo = () => {}; diff --git a/packages/astro/test/ssr-lit.test.js b/packages/astro/test/ssr-lit.test.js index 98d58b395acd..d9f70fe7e14b 100644 --- a/packages/astro/test/ssr-lit.test.js +++ b/packages/astro/test/ssr-lit.test.js @@ -25,7 +25,6 @@ describe('Lit integration in SSR', () => { } it('Is able to load', async () => { - delete globalThis.window; // On Windows this results in `ReferenceError: window is not defined` const html = await fetchHTML('/'); const $ = cheerioLoad(html); expect($('#win').text()).to.equal('function');