Files
multi-simadmin/vitest.config.ts
T
chick 5016586922 test: give process-spawning suites room and pin the fused behaviour
The runtime executables bind fixed ports, so the production command check now
skips instead of failing against a live deployment, and the canary check takes
a reserved free port. Raise the default test timeout for the SQLite and browser
suites that were only slow under full-suite parallelism.
2026-09-05 18:53:05 +08:00

22 lines
647 B
TypeScript

import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vitest/config';
export default defineConfig({
resolve: {
alias: [
{
find: /^animal-island-ui$/u,
replacement: fileURLToPath(
new URL('./apps/web/node_modules/animal-island-ui/dist/cjs/index.cjs', import.meta.url),
),
},
],
},
test: {
include: ['apps/**/*.test.{ts,tsx}', 'packages/contracts/**/*.test.ts'],
// The suite spawns real gateway processes and runs SQLite backups; under parallel file
// execution those exceed the 5s default without any functional problem.
testTimeout: 20_000,
},
});