Skip to content

Commit

Permalink
console coverage and thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed May 28, 2024
1 parent 3108674 commit 6119e32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 .",
Expand Down
6 changes: 6 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ export default defineConfig({
enabled: true,
provider: "istanbul",
reporter: ["html", "cobertura"],
thresholds: {
lines: 90,
functions: 90,
branches: 90,
statements: 90,
},
},
},
})

0 comments on commit 6119e32

Please sign in to comment.