Skip to content

Commit

Permalink
chore(test): add some path patterns to exclude from test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Feb 4, 2025
1 parent eb9f337 commit 07c786f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@ export default defineConfig({
coverage: {
provider: 'v8',
reporter: ['html', 'json', 'json-summary'],
include: ['**/packages/**/src/**'],
exclude: [
// exclude workshop files
'**/__workshop__/**',
// exclude telemetry definitions
'**/__telemetry__/**',
// exclude internal
'packages/@repo/**',
// exclude cli source files since their tests run in separate processes, so no coverage will be collected
'packages/@sanity/cli/src/**',
'packages/sanity/src/_internal/cli/**',
],
include: ['packages/**/src/**'],
reportOnFailure: true,
clean: true,
},
Expand Down

0 comments on commit 07c786f

Please sign in to comment.