Files
Dungeons-Ground/vitest.config.ts
pavel444-byte 438e5af0ad
Some checks failed
CI / validate (push) Failing after 9m21s
Important Fixes, New mechanics, and many more
2026-08-15 17:37:57 +05:00

22 lines
760 B
TypeScript

import { defineConfig } from 'vitest/config'
import { fileURLToPath } from 'node:url'
export default defineConfig({
test: {
include: ['packages/**/*.test.ts', 'apps/**/*.test.ts'],
environment: 'node',
// Nuxt/TypeScript transforms are CPU-heavy on small Node 18 machines.
// Running files sequentially avoids false timeout failures caused by
// several transform workers competing for the same memory and CPU.
fileParallelism: false,
testTimeout: 60_000,
hookTimeout: 60_000,
},
resolve: {
alias: {
'@dng/shared': fileURLToPath(new URL('./packages/shared/src/index.ts', import.meta.url)),
'@dng/game-engine': fileURLToPath(new URL('./packages/game-engine/src/index.ts', import.meta.url)),
},
},
})