summaryrefslogtreecommitdiff
path: root/packages/integrations/netlify/test/edge-functions/edge-basic.test.ts
blob: 7fc8877bddaa61bcb7f54208bbd3d48fde67773a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// @ts-ignore
import { runBuild } from './test-utils.ts';
// @ts-ignore
import { assertEquals, assert } from './deps.ts';

// @ts-ignore
Deno.test({
	name: 'Edge Basics',
	async fn() {
		let close = await runBuild('./fixtures/edge-basic/');
		const { default: handler } = await import(
			'./fixtures/edge-basic/dist/edge-functions/entry.mjs'
		);
		const response = await handler(new Request('http://example.com/'));
		assertEquals(response.status, 200);
		const html = await response.text();
		assert(html, 'got some html');
		await close();
	},
});
22-02-03 20:59:34 -0800'>2022-02-03Move detectFastRefresh to later so HTTP request handler starts fasterGravatar Jarred Sumner 1-2/+1 2022-02-03Fix bug with macro remaps in Bun.Transpiler apiGravatar Jarred Sumner 2-5/+8 2022-02-03Slight improvement to non-ascii file path handlingGravatar Jarred Sumner 4-18/+79 2022-02-02`path.relative` passes Node's tests (which also fixed bugs)Gravatar Jarred Sumner 8-283/+571