Skip to content

Commit

Permalink
basic setup for collecting coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushmishra1416 committed May 25, 2024
1 parent b62554d commit cd04c72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"build": "next build",
"start": "next start",
"test": "vitest",
"coverage": "vitest run --coverage",
"lint:check": "eslint --max-warnings 0 --config .eslintrc .",
"lint:fix": "eslint --max-warnings 0 --config .eslintrc . --fix",
"format:fix": "prettier --write \"**/*.{ts,tsx,json}\"",
Expand Down Expand Up @@ -104,6 +105,7 @@
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"@vitejs/plugin-react": "^4.3.0",
"@vitest/coverage-v8": "^1.6.0",
"autoprefixer": "^10.0.1",
"eslint": "^8.56.0",
"eslint-plugin-storybook": "^0.8.0",
Expand Down
3 changes: 3 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export default defineConfig({
globals: true,
environment: 'jsdom',
setupFiles: ['./vitest.setup.ts'],
coverage: {
provider: 'v8',
},
},
resolve: {
alias: {
Expand Down

0 comments on commit cd04c72

Please sign in to comment.