Skip to content

Commit

Permalink
chore: format & exclude build files from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
EdamAme-x committed Nov 11, 2024
1 parent f1b823f commit d034266
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
Expand Up @@ -8,7 +8,11 @@ export default defineConfig({
},
test: {
globals: true,
include: ['**/src/**/(*.)+(spec|test).+(ts|tsx|js)', '**/scripts/**/(*.)+(spec|test).+(ts|tsx|js)', '**/build/**/(*.)+(spec|test).+(ts|tsx|js)'],
include: [
'**/src/**/(*.)+(spec|test).+(ts|tsx|js)',
'**/scripts/**/(*.)+(spec|test).+(ts|tsx|js)',
'**/build/**/(*.)+(spec|test).+(ts|tsx|js)',
],
exclude: [...configDefaults.exclude, '**/sandbox/**', '**/*.case.test.+(ts|tsx|js)'],
setupFiles: ['./.vitest.config/setup-vitest.ts'],
coverage: {
Expand All @@ -20,7 +24,7 @@ export default defineConfig({
...(configDefaults.coverage.exclude ?? []),
'benchmarks',
'runtime-tests',
'build/build.ts',
...['prepare.ts', 'build.ts', 'post.ts'].map((name) => `build/${name}`),
'src/test-utils',
'perf-measures',

Expand Down

0 comments on commit d034266

Please sign in to comment.