Skip to content

Commit

Permalink
chore: add test coverage command (#7)
Browse files Browse the repository at this point in the history
* chore: add test coverage command

* fix: versions in CI

* fix: lint

---------

Co-authored-by: Prakash Choudhary <[email protected]>
  • Loading branch information
MehulKChaudhari and prakashchoudhary07 authored Nov 8, 2024
1 parent dd6ab09 commit 28b20d9
Show file tree
Hide file tree
Showing 4 changed files with 3,049 additions and 2,247 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ dist-ssr
*.njsproj
*.sln
*.sw?

# Coverage directory used by tools like istanbul
coverage
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"format:fix": "prettier --write .",
"preview": "vite preview",
"test": "vitest",
"test:watch": "vitest --watch"
"test:watch": "vitest --watch",
"test:coverage": "vitest run --coverage"
},
"dependencies": {
"react": "^18.3.1",
Expand All @@ -27,6 +28,7 @@
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
"@vitejs/plugin-react": "^4.3.3",
"@vitest/coverage-v8": "^2.1.1",
"eslint": "^8.57.1",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
Expand Down
Loading

0 comments on commit 28b20d9

Please sign in to comment.