Enable test coverage thresholds with retry and verbose timing

This commit is contained in:
morluto 2026-07-12 10:19:56 +08:00
parent b0e06dc307
commit 29a2f5d032
1 changed files with 14 additions and 1 deletions

View File

@ -2,7 +2,20 @@ import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
coverage: { enabled: false },
include: ["tests/**/*.test.ts"],
retry: 2,
reporters: ["default", "verbose"],
coverage: {
enabled: true,
provider: "v8",
include: ["src/**"],
thresholds: {
statements: 65,
branches: 60,
functions: 60,
lines: 68,
},
reporter: ["text", "text-summary"],
},
},
});