Skip to content

Commit

Permalink
Vitest config updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Brayden committed Jan 26, 2025
1 parent 95a35bc commit 5bd6981
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: pnpm install

- name: Run tests
run: pnpm vitest --coverage.enabled true --coverage.reporter json-summary --coverage.reporter json
run: pnpm vitest --coverage.enabled true

- name: Report Coverage
uses: davelosert/vitest-coverage-report-action@v2
8 changes: 7 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ export default defineConfig({
test: {
coverage: {
provider: 'istanbul',
reporter: ['text', 'html', 'json', 'lcov'],
reporter: ['text', 'html', 'json', 'json-summary', 'lcov'],
include: ['src/**/*.ts'],
exclude: ['**/node_modules/**'],
thresholds: {
lines: 60,
functions: 60,
branches: 60,
statements: 60,
},
},
},
})

0 comments on commit 5bd6981

Please sign in to comment.