discord.js/vitest.config.ts
TÆMBØ 29fd89f23c
fix(SlashCommandBuilder): add missing shared properties (#10255)
* types(SlashCommandBuilder): add missing shared properties

* Add tests for types

* Fix formatting

* Enable Vitest type checking

---------

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2024-05-15 17:36:02 +00:00

29 lines
777 B
TypeScript

import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
exclude: ['**/node_modules', '**/dist', '.idea', '.git', '.cache'],
passWithNoTests: true,
typecheck: {
enabled: true,
include: ["**/__tests__/types.test.ts"]
},
coverage: {
enabled: true,
all: true,
reporter: ['text', 'lcov', 'cobertura'],
provider: 'v8',
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}',
],
},
},
});