From 6119e32d3d455a1d649e6886295ba5421bf4411e Mon Sep 17 00:00:00 2001 From: SKairinos Date: Tue, 28 May 2024 11:16:59 +0000 Subject: [PATCH] console coverage and thresholds --- package.json | 1 + vite.config.ts | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/package.json b/package.json index f3a6b3e..5d24b9b 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "preview": "vite preview", "test": "vitest run", "test:coverage": "vitest run --coverage", + "test:verbose": "vitest run --reporter=verbose", "test:ui": "vitest --ui", "format": "prettier --write .", "format:check": "prettier --check --write=false .", diff --git a/vite.config.ts b/vite.config.ts index 150fb66..6072807 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -16,6 +16,12 @@ export default defineConfig({ enabled: true, provider: "istanbul", reporter: ["html", "cobertura"], + thresholds: { + lines: 90, + functions: 90, + branches: 90, + statements: 90, + }, }, }, })