mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 20:24:42 +12:00
cdaa0a36f5
BREAKING CHANGE: NodeJS v18+ is required when using node due to the use of global `fetch` BREAKING CHANGE: The raw method of REST now returns a web compatible `Respone` object. BREAKING CHANGE: The `parseResponse` utility method has been updated to operate on a web compatible `Response` object. BREAKING CHANGE: Many underlying internals have changed, some of which were exported. BREAKING CHANGE: `DefaultRestOptions` used to contain a default `agent`, which is now set to `null` instead.
24 lines
666 B
TypeScript
24 lines
666 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',
|
|
'**/{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}',
|
|
],
|
|
},
|
|
},
|
|
});
|