From 66ddc182c9b3a4704c833999f3f055ddba5bba0b Mon Sep 17 00:00:00 2001 From: Josh Knapp Date: Sun, 1 Mar 2026 00:42:35 +0000 Subject: [PATCH] Exclude test files from tsc build to fix CI The build step runs `tsc && vite build`, and the test files that import Node.js built-ins (fs, path) and use __dirname were causing TS2307 and TS2304 errors during compilation. Excluding test files from tsconfig keeps the build clean while vitest handles its own TypeScript resolution. Co-Authored-By: Claude Opus 4.6 --- app/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/tsconfig.json b/app/tsconfig.json index 8e9393d..dd33e10 100644 --- a/app/tsconfig.json +++ b/app/tsconfig.json @@ -17,5 +17,6 @@ "noFallthroughCasesInSwitch": true, "forceConsistentCasingInFileNames": true }, - "include": ["src"] + "include": ["src"], + "exclude": ["src/**/*.test.ts", "src/**/*.test.tsx", "src/test"] }