fix: exclude test files from frontend tsc build
All checks were successful
CI / lint (pull_request) Successful in 1m46s
CI / test (pull_request) Successful in 1m48s
CI / build (pull_request) Successful in 1m56s
CI / lint (push) Successful in 1m51s
CI / test (push) Successful in 1m51s
CI / build (push) Successful in 1m46s

Test files use vitest globals (vi, describe, afterEach) not available
to tsc. Exclude them from build type-check via tsconfig exclude block.
This commit is contained in:
Sergey Krylov 2026-06-14 13:41:17 +03:00
parent 60e456fbb5
commit 38729249f3

View File

@ -12,6 +12,7 @@
"noEmit": true, "noEmit": true,
"jsx": "react-jsx", "jsx": "react-jsx",
"strict": true, "strict": true,
"types": ["vitest/globals"],
"noUnusedLocals": false, "noUnusedLocals": false,
"noUnusedParameters": false, "noUnusedParameters": false,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
@ -20,5 +21,6 @@
} }
}, },
"include": ["src"], "include": ["src"],
"exclude": ["src/**/*.test.ts", "src/**/*.test.tsx", "src/test/**"],
"references": [{ "path": "./tsconfig.node.json" }] "references": [{ "path": "./tsconfig.node.json" }]
} }