
test bestanden moeten niet gecovered worden Bestanden rechtstreeks onder de src folder moeten ook niet gecovered worden (deze binden heel het project samen maar hebben geen aparte functionaliteit om te testen)
21 lines
645 B
TypeScript
21 lines
645 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: 'node',
|
|
globals: true,
|
|
testTimeout: 100000,
|
|
coverage: {
|
|
reporter: ['text', 'json-summary', 'json'],
|
|
// If you want a coverage reports even if your tests are failing, include the reportOnFailure option
|
|
reportOnFailure: true,
|
|
exclude: ['**/*config*', '**/tests/**', 'src/*.ts'],
|
|
thresholds: {
|
|
lines: 60,
|
|
branches: 60,
|
|
functions: 60,
|
|
statements: 60
|
|
},
|
|
},
|
|
},
|
|
});
|