Skip to content

Commit

Permalink
Ignore coverage on story files
Browse files Browse the repository at this point in the history
  • Loading branch information
codykaup committed Oct 16, 2024
1 parent ac99304 commit 42d989b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
/* eslint-disable import/no-unresolved */
import { configDefaults, coverageConfigDefaults, defineConfig } from 'vitest/config';

export default defineConfig({
test: {
exclude: [...configDefaults.exclude, '**/getParentCommits.test.ts'],
coverage: {
provider: 'v8',
exclude: ['vitest.no-threads.config.ts', 'scripts/**', ...coverageConfigDefaults.exclude],
exclude: [
'vitest.no-threads.config.ts',
'scripts/**',
'**/*.stories.{t,j}s',
...coverageConfigDefaults.exclude,
],
},
},
});

0 comments on commit 42d989b

Please sign in to comment.