import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { globals: true, environment: 'node', // EN: Contract tests can take longer due to Pact mock server startup. // VI: Contract tests có thể chậm hơn do Pact mock server khởi động. testTimeout: 30000, hookTimeout: 15000, // EN: Run serially to avoid port conflicts between mock servers. // VI: Chạy tuần tự để tránh xung đột port giữa các mock server. pool: 'forks', poolOptions: { forks: { singleFork: true } }, }, });