From 8766bd40c74aa5d737f5da1bc456dafdb1423947 Mon Sep 17 00:00:00 2001 From: Timo De Meyst Date: Fri, 4 Apr 2025 18:08:34 +0200 Subject: [PATCH] actions: backend vitest geconfigureerd voor coverage --- backend/vitest.config.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/backend/vitest.config.ts b/backend/vitest.config.ts index 29142c49..ac0e257e 100644 --- a/backend/vitest.config.ts +++ b/backend/vitest.config.ts @@ -5,5 +5,17 @@ export default defineConfig({ 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*'], + thresholds: { + lines: 60, + branches: 60, + functions: 60, + statements: 60 + }, + }, }, });