Skip to content

Commit

Permalink
fix: 🐛 exclude lib from test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
AllyMurray committed Dec 10, 2023
1 parent 13a0727 commit ea32a31
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/components/vitest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ export function defaultVitestOptions(): VitestOptions {
branches: 87,
statements: 89,
},
exclude: ['src/utils/test', '.projenrc.ts', 'src/cli', 'src/scripts'],
exclude: [
'src/utils/test',
'.projenrc.ts',
'src/cli',
'src/scripts',
'lib',
],
},
exclude: ['.cache', '.git', '.idea', 'dist', 'lib', 'node_modules'],
globals: true,
Expand Down
3 changes: 2 additions & 1 deletion src/projects/__snapshots__/npm-package.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,8 @@ export default defineConfig(
"src/utils/test",
".projenrc.ts",
"src/cli",
"src/scripts"
"src/scripts",
"lib"
]
},
"exclude": [
Expand Down
3 changes: 2 additions & 1 deletion vitest.config.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ea32a31

Please sign in to comment.