From ab4e6f9ef8448c40c91200d07aadd61a0ec18815 Mon Sep 17 00:00:00 2001 From: deMGoncalves Date: Tue, 10 Sep 2024 09:38:10 -0300 Subject: [PATCH] ci: configuracao da cobertura do codigo --- package.json | 2 +- vitest.config.js | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 31f0efa..388f180 100644 --- a/package.json +++ b/package.json @@ -62,5 +62,5 @@ "source": "src/index.js", "type": "module", "types": "types.d.ts", - "version": "0.0.47" + "version": "0.0.48" } diff --git a/vitest.config.js b/vitest.config.js index 4745c5c..7424fe6 100644 --- a/vitest.config.js +++ b/vitest.config.js @@ -4,12 +4,19 @@ import { defineConfig } from "vite"; export default defineConfig({ test: { coverage: { - reporter: [["lcov", { projectRoot: "./src" }]], + include: ["src/**/*.js"], + exclude: [ + "src/**/*.spec.ts", + "src/**/index.js", + "src/**/types.d.ts", + "src/**/README.md", + ], + reporter: ["lcov", "text"], thresholds: { - statements: 56, - branches: 46, - functions: 36, - lines: 56, + statements: 60, + branches: 79, + functions: 66, + lines: 60, }, }, environment: "jsdom",