Skip to content

Commit

Permalink
remove lit global shim workarounds
Browse files Browse the repository at this point in the history
  • Loading branch information
e111077 committed Mar 28, 2023
1 parent b397b03 commit 1271d9d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions packages/astro/e2e/lit-component.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({});
Expand Down Expand Up @@ -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 = () => {};
Expand Down
1 change: 0 additions & 1 deletion packages/astro/test/ssr-lit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 1271d9d

Please sign in to comment.