test: strengthen user-path coverage and CI gates (#5308)

This commit is contained in:
chengyongru
2026-08-09 21:37:06 +08:00
committed by GitHub
parent 411d6061ae
commit 55ecda275d
19 changed files with 1090 additions and 87 deletions
+12
View File
@@ -161,6 +161,18 @@ export default defineConfig(({ mode }) => {
environment: "happy-dom",
globals: true,
setupFiles: ["./src/tests/setup.ts"],
coverage: {
provider: "v8",
include: ["src/**/*.{ts,tsx}"],
exclude: ["src/tests/**", "src/**/*.d.ts"],
reporter: ["text", "json-summary"],
thresholds: {
statements: 85,
branches: 80,
functions: 80,
lines: 85,
},
},
},
};
});