Skip to content

Commit

Permalink
ci: add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
greenpixels committed Sep 29, 2023
1 parent d0dcbfb commit 227f2ca
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
**/.vscode/
**/.idea/
**/*.log
**/npm-debug.log*
**/npm-debug.log*
**/coverage
40 changes: 40 additions & 0 deletions client/package-lock.json

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

3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "tsc && vite build",
"lint": "eslint . --fix --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"test": "vitest --ui",
"test": "vitest run --coverage",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"format": "prettier . --write"
Expand Down Expand Up @@ -37,6 +37,7 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitejs/plugin-react": "^4.0.3",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/ui": "^0.34.5",
"autoprefixer": "^10.4.15",
"eslint": "^8.45.0",
Expand Down
4 changes: 4 additions & 0 deletions client/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ export default defineConfig({
},
test: {
environment: "happy-dom",
coverage: {
provider: "v8",
reporter: ["cobertura", "lcov", "text"],
},
},
});

0 comments on commit 227f2ca

Please sign in to comment.