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)), }, }, })