diff options
| author | Allen Hutchison <[email protected]> | 2025-05-27 12:45:28 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-27 12:45:28 -0700 |
| commit | 4e3c539f5eda23f4eab111dc95c81e8973cb5199 (patch) | |
| tree | d03a195ebd8816025e5a1149ba9b886b2ab6ac47 /packages/cli/vitest.config.ts | |
| parent | 9595e98db81806ba5bbd6cadcc49ae6911a72406 (diff) | |
feat: Publish test coverage summaries to PRs (#513)
Diffstat (limited to 'packages/cli/vitest.config.ts')
| -rw-r--r-- | packages/cli/vitest.config.ts | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/packages/cli/vitest.config.ts b/packages/cli/vitest.config.ts index aac3ddb3..a7548310 100644 --- a/packages/cli/vitest.config.ts +++ b/packages/cli/vitest.config.ts @@ -10,6 +10,22 @@ import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { environment: 'jsdom', - globals: true, // Optional: enables global APIs like describe, it, expect + globals: true, + reporters: ['default', 'junit'], + outputFile: { + junit: 'junit.xml', + }, + coverage: { + provider: 'v8', + reportsDirectory: './coverage', + reporter: [ + ['text', { file: 'full-text-summary.txt' }], + 'html', + 'json', + 'lcov', + 'cobertura', + ['json-summary', { outputFile: 'coverage-summary.json' }], + ], + }, }, }); |
