From 38729249f3b66f3f24bbf811821d044210eff714 Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Sun, 14 Jun 2026 13:41:17 +0300 Subject: [PATCH] fix: exclude test files from frontend tsc build Test files use vitest globals (vi, describe, afterEach) not available to tsc. Exclude them from build type-check via tsconfig exclude block. --- apps/frontend/tsconfig.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/frontend/tsconfig.json b/apps/frontend/tsconfig.json index acda453..e9299cb 100644 --- a/apps/frontend/tsconfig.json +++ b/apps/frontend/tsconfig.json @@ -12,6 +12,7 @@ "noEmit": true, "jsx": "react-jsx", "strict": true, + "types": ["vitest/globals"], "noUnusedLocals": false, "noUnusedParameters": false, "noFallthroughCasesInSwitch": true, @@ -20,5 +21,6 @@ } }, "include": ["src"], + "exclude": ["src/**/*.test.ts", "src/**/*.test.tsx", "src/test/**"], "references": [{ "path": "./tsconfig.node.json" }] }