feat(vite): serve static index.html files (#3358)

Fixes https://github.com/denoland/fresh/issues/3356
This commit is contained in:
Marvin Hagemeister
2025-09-08 17:36:30 +02:00
committed by GitHub
parent 2e015cd2b9
commit 8743322968
5 changed files with 66 additions and 0 deletions
@@ -392,3 +392,14 @@ Deno.test({
sanitizeOps: false,
sanitizeResources: false,
});
Deno.test({
name: "vite dev - static index.html",
fn: async () => {
const res = await fetch(`${demoServer.address()}/test_static/foo`);
const text = await res.text();
expect(text).toContain("<h1>ok</h1>");
},
sanitizeOps: false,
sanitizeResources: false,
});