From 66b7bd21cb9f44a2eda19cdd84e661eafae74c9a Mon Sep 17 00:00:00 2001 From: Leonardo Zizzamia Date: Thu, 8 Aug 2024 13:51:23 -0700 Subject: [PATCH] chore: coverage (#19) --- biome.json | 8 +++----- vitest.config.ts | 11 ++++++----- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/biome.json b/biome.json index 129c081..03d7be1 100644 --- a/biome.json +++ b/biome.json @@ -6,8 +6,7 @@ "formatter": { "enabled": true, "indentWidth": 2, - "indentStyle": "space", - "ignore": ["package.json"] + "indentStyle": "space" }, "javascript": { "formatter": { @@ -54,8 +53,7 @@ "useShorthandAssign": "error", "useSingleCaseStatement": "error" } - }, - "ignore": [] + } }, "json": { "formatter": { @@ -63,6 +61,6 @@ } }, "files": { - "ignore": [".next"] + "ignore": ["coverage/**", ".next/**"] } } diff --git a/vitest.config.ts b/vitest.config.ts index f6d6bc4..2c74119 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -9,19 +9,20 @@ export default defineConfig({ '**/**.stories.**', '**/*Svg.tsx', '**/types.ts', + '.next/**', 'public/**', 'node_modules/**', ], reportOnFailure: true, thresholds: { - statements: 20, - branches: 20, - functions: 20, - lines: 20, + statements: 50, + branches: 50, + functions: 50, + lines: 50, }, }, environment: 'jsdom', - exclude: ['**/node_modules/**'], + exclude: ['**/node_modules/**', '.next/**', 'public/**'], setupFiles: ['./vitest.setup.ts'], globals: true, },