diff --git a/apps/web/vitest.config.ts b/apps/web/vitest.config.ts index 6be4c880b..601d38f90 100755 --- a/apps/web/vitest.config.ts +++ b/apps/web/vitest.config.ts @@ -17,12 +17,12 @@ export default defineConfig({ provider: "v8", reporter: ["text", "json", "html"], exclude: ["node_modules/", "src/test/", "e2e/", "**/*.d.ts", "**/*.config.*", "**/mockData"], - // CI 覆盖率门禁(极低门槛起步,逐步提升) - // 当前实际覆盖率约 0.8%/0.9%/1.1%,先设极低门槛确保CI跑通 + // CI 覆盖率门禁(Phase 4 后提升,逐步逼近目标) + // 当前实际:行 ~62% / 分支 ~61% / 函数 ~25% thresholds: { - lines: 0.5, - functions: 0.5, - branches: 0.5, + lines: 50, + branches: 50, + functions: 20, }, }, },