mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-30 10:46:05 +00:00
728ee3809a
* add dependency cruiser and fix all default errors * create svg render of dependencies in command * move configs to ts files, await font loading * fix i18n * fix dependencies... * fix typedoc generation and tsconfig exclusions * revert github-pages fix for another pr * no-circular -> no-circular-at-runtime for type imports (future)
39 lines
771 B
TypeScript
39 lines
771 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import { defaultConfig } from './vite.config';
|
|
|
|
export default defineConfig(({mode}) => ({
|
|
...defaultConfig,
|
|
test: {
|
|
setupFiles: ['./src/test/vitest.setup.ts'],
|
|
server: {
|
|
deps: {
|
|
inline: ['vitest-canvas-mock'],
|
|
optimizer: {
|
|
web: {
|
|
include: ['vitest-canvas-mock'],
|
|
}
|
|
}
|
|
}
|
|
},
|
|
environment: 'jsdom' as const,
|
|
environmentOptions: {
|
|
jsdom: {
|
|
resources: 'usable',
|
|
},
|
|
},
|
|
threads: false,
|
|
trace: true,
|
|
restoreMocks: true,
|
|
watch: false,
|
|
coverage: {
|
|
provider: 'istanbul' as const,
|
|
reportsDirectory: 'coverage' as const,
|
|
reporters: ['text-summary', 'html'],
|
|
},
|
|
},
|
|
esbuild: {
|
|
pure: mode === 'production' ? [ 'console.log' ] : [],
|
|
keepNames: true,
|
|
},
|
|
}))
|