Enable test coverage thresholds with retry and verbose timing
This commit is contained in:
parent
b0e06dc307
commit
29a2f5d032
|
|
@ -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"],
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue