discord.js/vitest.config.ts
ckohen 7f2ef962ec
test: fix coverage reporting (#9148)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-19 18:59:35 +00:00

24 lines
632 B
TypeScript

import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
exclude: ['**/node_modules', '**/dist', '.idea', '.git', '.cache'],
passWithNoTests: true,
coverage: {
enabled: true,
all: true,
reporter: ['text', 'lcov', 'cobertura'],
provider: 'c8',
include: ['src'],
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}',
// All exports files that make subpackages available as submodules
'**/exports/*.{js,ts}',
],
},
},
});