discord.js/vitest.config.ts

29 lines
777 B
TypeScript
Raw Permalink Normal View History

import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
2022-07-04 01:33:18 +12:00
exclude: ['**/node_modules', '**/dist', '.idea', '.git', '.cache'],
passWithNoTests: true,
typecheck: {
enabled: true,
include: ["**/__tests__/types.test.ts"]
},
coverage: {
enabled: true,
2022-07-04 01:33:18 +12:00
all: true,
2022-07-05 22:32:05 +12:00
reporter: ['text', 'lcov', 'cobertura'],
provider: 'v8',
2022-07-04 01:33:18 +12:00
include: ['src'],
exclude: [
// All ts files that only contain types, due to ALL
'**/*.{interface,type,d}.ts',
'**/{interfaces,types}/*.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}',
],
},
},
});