Skip to content

Commit

Permalink
fixed unit test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushmishra1416 committed May 30, 2024
1 parent 20af16f commit dbd0219
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"start": "next start",
"test": "vitest -c ./vitest.config.unit.ts",
"test:integration": "./scripts/run-integration.sh",
"coverage": "vitest run --coverage",
"coverage": "vitest run -c ./vitest.config.unit.ts --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
2 changes: 2 additions & 0 deletions vitest.config.unit..ts → vitest.config.unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export default defineConfig({
test: {
globals: true,
environment: 'jsdom',
include: ['src/**/*.test.tsx'],
exclude: ['src/tests/**/*.test.tsx'],
setupFiles: ['./vitest.setup.ts'],
coverage: {
provider: 'v8',
Expand Down

0 comments on commit dbd0219

Please sign in to comment.