test: 固化 80% 覆盖率 CI 门禁(统计/分支/函数/行)并补齐交互用例

This commit is contained in:
2026-08-17 18:10:59 +08:00
parent 9003e4b494
commit c95e18f66e
5 changed files with 205 additions and 27 deletions
+8 -1
View File
@@ -20,7 +20,14 @@ export default defineConfig({
reporter: ['text', 'text-summary'],
include: ['src/renderer/src/**/*.{ts,tsx}'],
exclude: ['src/renderer/src/**/*.{test,spec}.{ts,tsx}', 'src/renderer/src/test/**', 'src/renderer/src/env.d.ts'],
all: true
all: true,
// CI 门禁:四项覆盖率不得低于 80%,否则测试失败
thresholds: {
statements: 80,
branches: 80,
functions: 80,
lines: 80
}
}
}
})