astro/packages/integrations/netlify/test/edge-functions/prerender.test.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
479 B
TypeScript
Raw Normal View History

import { runBuild } from './test-utils.ts';
import { assertEquals } from './deps.ts';
Deno.test({
name: 'Prerender',
async fn() {
let close = await runBuild('./fixtures/prerender/');
const { default: handler } = await import(
'./fixtures/prerender/.netlify/edge-functions/entry.js'
);
const response = await handler(new Request('http://example.com/index.html'));
assertEquals(response, undefined, 'No response because this is an asset');
await close();
},
2023-02-21 14:17:00 +00:00
});