From 7946fa5d2229cf41ac24731fa6ef41b07b08fa44 Mon Sep 17 00:00:00 2001 From: Hanna Tarasevich Date: Tue, 31 Dec 2024 11:41:02 +0100 Subject: [PATCH] Update vitest.conf.ts (add rules according to v1 approach) --- vitest.conf.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vitest.conf.ts b/vitest.conf.ts index 649eabc..a056aef 100644 --- a/vitest.conf.ts +++ b/vitest.conf.ts @@ -12,10 +12,11 @@ export default defineConfig({ '**/node_modules/**' ], coverage: { - reporter: ['text'], provider: "v8", + ignoreEmptyLines: false, enabled: true, - exclude: ['**/dist/**', '**/__mocks__/**', '**/__fixtures__/**', '**/*.test.ts', '**/src/types/**', '**/src/types.ts', '*.cjs', '*.conf.ts'], + include: ['src/**/*.ts'], + exclude: ['**/types.ts', '**/src/types/**'], thresholds: { lines: 90, functions: 90,