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.
22 lines
647 B
TypeScript
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,
|
|
},
|
|
});
|