From 55ce7085d06c53fe575c1119f29aca269bc0ec0e Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sun, 25 Jan 2026 20:16:01 +0000 Subject: [PATCH] fix(frontend): exclude test types from production build config Override the types array in tsconfig.build.json to prevent vitest and testing-library type definitions from being required during production builds. These are devDependencies only needed for test compilation. Fixes CI E2E workflow failure: TS2688 "Cannot find type definition file" --- frontend/tsconfig.build.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/tsconfig.build.json b/frontend/tsconfig.build.json index e30a6daf..95341235 100644 --- a/frontend/tsconfig.build.json +++ b/frontend/tsconfig.build.json @@ -1,5 +1,9 @@ { "extends": "./tsconfig.json", + "compilerOptions": { + // Override types to exclude test-only type definitions for production build + "types": [] + }, "exclude": [ "src/**/*.test.ts", "src/**/*.test.tsx",