import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['tests/integration/**/*.test.ts'],
testTimeout: 30000,
hookTimeout: 120000,
pool: 'forks',
poolOptions: {
forks: {
singleFork: true,
},
},
env: {
NODE_ENV: 'test',
FOUNDRY_URL: 'http://localhost:30001',
LOG_LEVEL: 'error',
},
globalSetup: ['tests/integration/global-setup.ts'],
},
resolve: {
alias: {
'@': new URL('./src', import.meta.url).pathname,
},
},
});