Files
advanced-camera-card/vite.config.ts
T
Dermot Duffy 8f3c6af38f Update test thresholds.
New vitest versions are much better at calculating the denominator, test
coverage has actually improved in this PR, but much more code is detected.
2024-03-03 15:54:18 -08:00

25 lines
548 B
TypeScript

import { defineConfig } from 'vitest/config';
// ts-prune-ignore-next
export default defineConfig({
test: {
include: [
"tests/**/*.test.ts"
],
coverage: {
// Favor istanbul for coverage over v8 due to better accuracy.
provider: 'istanbul',
// Thresholds will automatically be updated as coverage improves to avoid
// back-sliding.
thresholds: {
autoUpdate: true,
statements: 51.11,
branches: 43.04,
functions: 51.03,
lines: 51.91,
},
},
},
});