deno.land / x / lume@v2.1.4 / tests / unocss.test.ts
12345678910111213141516171819202122232425262728293031323334353637383940414243444546import { assertSiteSnapshot, build, getSite } from "./utils.ts";import unocss from "../plugins/unocss.ts";
Deno.test("Unocss plugin", async (t) => { const site = getSite({ src: "unocss", });
site.use(unocss({ cssFile: false, transformers: [], reset: "tailwind", }));
await build(site); await assertSiteSnapshot(t, site);});
Deno.test("Unocss plugin (css file)", async (t) => { const site = getSite({ src: "unocss", });
site.use(unocss({ cssFile: "styles.css", transformers: [], reset: "tailwind", }));
await build(site); await assertSiteSnapshot(t, site);});
Deno.test("Unocss plugin (with transformers)", async (t) => { const site = getSite({ src: "unocss", });
site.use(unocss({ cssFile: "styles.css", }));
await build(site); await assertSiteSnapshot(t, site);});
Version Info