Skip to content

Commit

Permalink
🐛 Corect coverage reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
radek2s committed Feb 1, 2024
1 parent 21db1e6 commit 7e98d43
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/frontent-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
node-version: 18.13
cache: 'npm'
- run: npm ci
- run: npm run test:ci
- run: npm run test:coverage
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"test": "vitest",
"test:ci": "vitest run",
"test:coverage": "vitest run --coverage",
"test:ci:coverage": "vitest run --coverage --reporter=json --outputFile=report.json",
"build": "CI=false && tsc && vite build",
"preview": "vite preview",
"format": "npx prettier --write .",
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default defineConfig({
environment: 'jsdom',
setupFiles: ['@testing-library/jest-dom', './test/testSetup.ts'],
coverage: {
reporter: ['text', 'cobertura', 'html'],
provider: 'v8',
exclude: [
'build',
Expand Down

0 comments on commit 7e98d43

Please sign in to comment.