mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
19667c45f3
* Netlify Edge: forward requests for static assets * Adds a changeset * Don't run edge tests, yet
16 lines
563 B
TypeScript
16 lines
563 B
TypeScript
// @ts-ignore
|
|
import { runBuild } from './test-utils.ts';
|
|
// @ts-ignore
|
|
import { assertEquals, assert, DOMParser } from './deps.ts';
|
|
|
|
// @ts-ignore
|
|
Deno.test({
|
|
name: 'Assets are preferred over HTML routes',
|
|
async fn() {
|
|
let close = await runBuild('./fixtures/root-dynamic/');
|
|
const { default: handler } = await import('./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');
|
|
await close();
|
|
},
|
|
});
|