import { defineVitestConfig } from '@nuxt/test-utils/config' export default defineVitestConfig({ test: { environment: 'nuxt', include: ['test/**/*.test.ts'], // Booting the Nuxt environment can be slow on a cold start (and in CI) hookTimeout: 60_000, testTimeout: 30_000, environmentOptions: { nuxt: { domEnvironment: 'happy-dom', // Empty base URL so $fetch calls hit endpoints registered with registerEndpoint() overrides: { runtimeConfig: { public: { apiBaseUrl: '' } } } } } } })