0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-21 18:18:57 +01:00

chore: format & exclude build files from coverage

This commit is contained in:
Ame_x Edam 2024-11-11 10:20:02 +00:00
parent f1b823f3e8
commit d034266ba2

View File

@ -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: {
@ -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',