Skip to content

Commit 6a5cd8f

Browse files
committed
remove lit global shim workarounds
1 parent f71eb80 commit 6a5cd8f

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

packages/astro/e2e/lit-component.test.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ const test = testFactory({
88
// TODO: configure playwright to handle web component APIs
99
// https://github.com/microsoft/playwright/issues/14241
1010
test.describe('Lit components', () => {
11-
test.beforeAll(() => {
12-
delete globalThis.window;
13-
});
14-
1511
test.describe('Development', () => {
1612
let devServer;
1713
const t = test.extend({});
@@ -158,7 +154,6 @@ test.describe('Lit components', () => {
158154
const t = test.extend({});
159155

160156
t.beforeAll(async ({ astro }) => {
161-
delete globalThis.window;
162157
// Playwright's Node version doesn't have these functions, so stub them.
163158
process.stdout.clearLine = () => {};
164159
process.stdout.cursorTo = () => {};

packages/astro/test/ssr-lit.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ describe('Lit integration in SSR', () => {
2525
}
2626

2727
it('Is able to load', async () => {
28-
delete globalThis.window; // On Windows this results in `ReferenceError: window is not defined`
2928
const html = await fetchHTML('/');
3029
const $ = cheerioLoad(html);
3130
expect($('#win').text()).to.equal('function');

0 commit comments

Comments
 (0)