Skip to content

Commit

Permalink
chore(test): add test coverage (#8)
Browse files Browse the repository at this point in the history
add coverage
  • Loading branch information
alvinsj authored Jun 9, 2024
1 parent 2cc227e commit c7d18b2
Show file tree
Hide file tree
Showing 3 changed files with 264 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dist
dist-ssr
*.local
!.env.test.local
coverage/

# Editor directories and files
.vscode/*
Expand Down
261 changes: 260 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"test": "vitest"
"test": "vitest",
"test:coverage": "vitest --coverage"
},
"dependencies": {
"react": "^18.2.0",
Expand All @@ -24,6 +25,7 @@
"@typescript-eslint/parser": "^7.2.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"@vitest/browser": "^1.6.0",
"@vitest/coverage-v8": "^1.6.0",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
Expand Down

0 comments on commit c7d18b2

Please sign in to comment.