fix: exclude test files from tsconfig.app.json to resolve TS2304 build error

P0 F-01: Frontend build was failing with "Cannot find name 'beforeEach'"
because test files were being compiled by tsconfig.app.json which lacked
vitest globals. Added exclude patterns to tsconfig.app.json.

Updated PROJECT_REAL_COMPLETION_REVIEW_2026-04-10.md to reflect fix.
This commit is contained in:
2026-04-11 23:45:43 +08:00
parent 779b432f52
commit 861736cf4d
2 changed files with 3 additions and 1 deletions

View File

@@ -203,6 +203,7 @@ go run golang.org/x/vuln/cmd/govulncheck@latest ./... # PASS
11. ~~P1: IntegrationRedisSuite 未定义~~ ✅ 已修复 — 定义 `internal/repository/integration_redis_suite.go`
12. ~~P1: 完整性检查自动化~~ ✅ 已添加 — `scripts/check-integrity.sh` 自动化检查 swagger 注解、响应格式、测试类型
13. ~~P1: 虚假完成防范规范~~ ✅ 已添加 — `docs/team/FALSE_COMPLETION_PREVENTION.md`
14. ~~P0: 前端 TypeScript 编译错误~~ ✅ 已修复 — `tsconfig.app.json` 排除测试文件,消除 `beforeEach` 类型错误
## 状态

View File

@@ -30,5 +30,6 @@
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
"include": ["src"]
"include": ["src"],
"exclude": ["src/**/*.test.tsx", "src/**/*.test.ts", "src/**/*.spec.tsx", "src/**/*.spec.ts"]
}