Enable test coverage thresholds with retry and verbose timing
This commit is contained in:
+14
-1
@@ -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"],
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user