mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
fca58cfd91
* wip: revert sitemap PR * fix: extract SSR-ready "slug" helper to separate module * Un-revert sitemap PR. Not to blame! This reverts commit7cd2a8a5ea
. * fix: use .netlify for edge deployment test * refactor: add md file to edge function fixture * fix: add netlify edge tests to ci * chore: remove stray console log * wip: undo "dist" change on edge tests * chore: changeset * Revert "wip: undo "dist" change on edge tests" This reverts commit70e565ef06
. * temp: add ignore to breaking edge tests
20 lines
649 B
TypeScript
20 lines
649 B
TypeScript
// @ts-ignore
|
|
import { runBuild } from './test-utils.ts';
|
|
// @ts-ignore
|
|
import { assertEquals, assert, DOMParser } from './deps.ts';
|
|
|
|
// @ts-ignore
|
|
Deno.test({
|
|
// TODO: debug why build cannot be found in "await import"
|
|
ignore: true,
|
|
name: 'Assets are preferred over HTML routes',
|
|
async fn() {
|
|
let close = await runBuild('./fixtures/root-dynamic/');
|
|
const { default: handler } = await import(
|
|
'./fixtures/root-dynamic/.netlify/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();
|
|
},
|
|
});
|