From 70e565ef06b228150547bca92bc12d1c236c0ed9 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Thu, 16 Jun 2022 16:51:15 -0400 Subject: [PATCH] wip: undo "dist" change on edge tests --- .../integrations/netlify/test/edge-functions/edge-basic.test.ts | 2 +- .../netlify/test/edge-functions/root-dynamic.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/integrations/netlify/test/edge-functions/edge-basic.test.ts b/packages/integrations/netlify/test/edge-functions/edge-basic.test.ts index b0bc7dc88b2e..e7b7209004f4 100644 --- a/packages/integrations/netlify/test/edge-functions/edge-basic.test.ts +++ b/packages/integrations/netlify/test/edge-functions/edge-basic.test.ts @@ -8,7 +8,7 @@ Deno.test({ name: 'Edge Basics', async fn() { let close = await runBuild('./fixtures/edge-basic/'); - const { default: handler } = await import('./fixtures/edge-basic/.netlify/edge-functions/entry.js'); + const { default: handler } = await import('./fixtures/edge-basic/dist/edge-functions/entry.js'); const response = await handler(new Request('http://example.com/')); assertEquals(response.status, 200); const html = await response.text(); diff --git a/packages/integrations/netlify/test/edge-functions/root-dynamic.test.ts b/packages/integrations/netlify/test/edge-functions/root-dynamic.test.ts index 7a9b83170510..34276362e9f6 100644 --- a/packages/integrations/netlify/test/edge-functions/root-dynamic.test.ts +++ b/packages/integrations/netlify/test/edge-functions/root-dynamic.test.ts @@ -9,7 +9,7 @@ Deno.test({ async fn() { let close = await runBuild('./fixtures/root-dynamic/'); const { default: handler } = await import( - './fixtures/root-dynamic/.netlify/edge-functions/entry.js' + './fixtures/root-dynamic/dist/edge-functions/entry.js' ); const response = await handler(new Request('http://example.com/styles.css')); assertEquals(response, undefined, 'No response because this is an asset');