Skip to content

Commit

Permalink
e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
phonzammi committed Nov 13, 2024
1 parent 4f009d9 commit c2d0615
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions boilerplates/eslint/files/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export default tseslint.config(
".vercel/*",
//# BATI.has("aws")
"cdk.out/*",
//# BATI.has("panda-css")
"styled-system/",
// JS files at the root of the project
"*.js",
"*.cjs",
Expand Down
2 changes: 1 addition & 1 deletion boilerplates/shared/files/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"strict": true,
"allowJs": true,
"checkJs": true,
"checkJs": false,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { readFile } from "node:fs/promises";
import { describeBati } from "@batijs/tests-utils";
import { existsSync } from "node:fs";
import path from "node:path";

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

await describeBati(({ test, expect, fetch, context }) => {
test("home", async () => {
Expand All @@ -14,4 +16,9 @@ await describeBati(({ test, expect, fetch, context }) => {
const content = await readFile("tailwind.config.ts", "utf-8");
expect(content.includes("daisyui")).toBe(context.flags.includes("daisyui"));
});

test("panda-css", async () => {
expect(existsSync(path.join(process.cwd(), "panda.config.ts"))).toBe(true);
expect(existsSync(path.join(process.cwd(), "layouts", "panda.css"))).toBe(true);
});
});

0 comments on commit c2d0615

Please sign in to comment.