Skip to content

Commit

Permalink
ci: configuracao da cobertura do codigo
Browse files Browse the repository at this point in the history
  • Loading branch information
deMGoncalves committed Sep 10, 2024
1 parent 0c57ace commit ab4e6f9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@
"source": "src/index.js",
"type": "module",
"types": "types.d.ts",
"version": "0.0.47"
"version": "0.0.48"
}
17 changes: 12 additions & 5 deletions vitest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ab4e6f9

Please sign in to comment.