chore: ignore index files in coverage (#8293)

Co-authored-by: ckohen <chaikohen@gmail.com>
This commit is contained in:
Almeida
2022-07-17 17:51:03 +01:00
committed by GitHub
parent fe34f48efb
commit bddb6a461c
3 changed files with 798 additions and 793 deletions

View File

@@ -9,8 +9,12 @@ export default defineConfig({
all: true,
reporter: ['text', 'lcov', 'cobertura'],
include: ['src'],
// All ts files that only contain types, due to ALL
exclude: ['**/*.{interface,type,d}.ts'],
exclude: [
// All ts files that only contain types, due to ALL
'**/*.{interface,type,d}.ts',
// All index files that *should* only contain exports from other files
'**/index.{js,ts}',
],
},
},
});