fix: tailwind failing on non-existant files (#2118)

This commit is contained in:
Marvin Hagemeister
2023-12-01 23:38:22 +01:00
committed by GitHub
parent 8fecb589ba
commit 2acf72d512
5 changed files with 38 additions and 3 deletions
+12
View File
@@ -37,3 +37,15 @@ Deno.test("TailwindCSS - config", async () => {
{ loadConfig: true },
);
});
Deno.test("TailwindCSS - middleware only css", async () => {
await withFakeServe(
"./tests/fixture_tailwind/dev.ts",
async (server) => {
const res = await server.get("/middleware-only.css");
const content = await res.text();
assertStringIncludes(content, ".foo-bar");
},
{ loadConfig: true },
);
});