完善 CI 质量门禁并启用覆盖率阈值

This commit is contained in:
2026-03-03 13:02:31 +08:00
parent 4cd593bc30
commit 41ac21ea12
8 changed files with 213 additions and 19 deletions
+10
View File
@@ -19,6 +19,16 @@ export default defineConfig({
},
},
test: {
coverage: {
provider: "v8",
reporter: ["text", "html"],
thresholds: {
statements: 57,
branches: 50,
functions: 47,
lines: 60,
},
},
projects: [
{
plugins: [react()],