Skip to content

Commit bfb6b79

Browse files
committed
fix test
1 parent 290a367 commit bfb6b79

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

packages/tests/tests/FRAMEWORK+CSS.spec.ts

+10-9
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,21 @@ import path from "node:path";
55

66
export const matrix = [["solid", "react", "vue"], ["tailwindcss", "daisyui", "panda-css"], "eslint"];
77

8-
await describeBati(({ test, expect, fetch, context }) => {
8+
await describeBati(({ test, expect, fetch, testMatch, context }) => {
99
test("home", async () => {
1010
const res = await fetch("/");
1111
expect(res.status).toBe(200);
1212
expect(await res.text()).not.toContain('{"is404":true}');
1313
});
1414

15-
test("daisyui", async () => {
16-
const content = await readFile("tailwind.config.ts", "utf-8");
17-
expect(content.includes("daisyui")).toBe(context.flags.includes("daisyui"));
18-
});
19-
20-
test("panda-css", async () => {
21-
expect(existsSync(path.join(process.cwd(), "panda.config.ts"))).toBe(true);
22-
expect(existsSync(path.join(process.cwd(), "layouts", "panda.css"))).toBe(true);
15+
testMatch<typeof matrix>("config exists", {
16+
daisyui: async () => {
17+
const content = await readFile("tailwind.config.ts", "utf-8");
18+
expect(content.includes("daisyui")).toBe(context.flags.includes("daisyui"));
19+
},
20+
"panda-css": async () => {
21+
expect(existsSync(path.join(process.cwd(), "panda.config.ts"))).toBe(true);
22+
expect(existsSync(path.join(process.cwd(), "layouts", "panda.css"))).toBe(true);
23+
},
2324
});
2425
});

0 commit comments

Comments
 (0)