import { fileURLToPath } from 'node:url'; import { defineConfig } from 'vitest/config'; const root = (path: string) => fileURLToPath(new URL(path, import.meta.url)); export default defineConfig({ resolve: { alias: { '~~': root('.'), '#shared': root('./shared') } }, test: { include: ['tests/integration/**/*.itest.ts'], globalSetup: ['tests/integration/global-setup.ts'], setupFiles: ['tests/integration/setup.ts'], fileParallelism: false, // First touch of WASM Postgres can be slow; the build happens in // globalSetup and is not affected by these timeouts. testTimeout: 30_000, hookTimeout: 120_000 } });