Files
Charon/frontend/tsconfig.build.json
GitHub Actions 55ce7085d0 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"
2026-01-25 20:16:01 +00:00

16 lines
320 B
JSON

{
"extends": "./tsconfig.json",
"compilerOptions": {
// Override types to exclude test-only type definitions for production build
"types": []
},
"exclude": [
"src/**/*.test.ts",
"src/**/*.test.tsx",
"src/**/*.spec.ts",
"src/**/*.spec.tsx",
"src/**/__tests__/**",
"src/test"
]
}