import { defineConfig, devices } from '@playwright/test' const baseURL = 'http://127.0.0.1:43100' export default defineConfig({ testDir: './tests/playwright', fullyParallel: false, forbidOnly: Boolean(process.env.CI), retries: process.env.CI ? 1 : 0, workers: 1, reporter: process.env.CI ? 'github' : 'list', use: { baseURL, trace: 'retain-on-failure' }, webServer: { command: 'npx nuxt dev --host=127.0.0.1 --port=43100', url: baseURL, reuseExistingServer: false, timeout: 120000, env: { ...process.env } }, projects: [ { name: 'api', testMatch: /api\/.*\.spec\.js/, use: { baseURL } }, { name: 'e2e', testMatch: /e2e\/.*\.spec\.js/, use: { ...devices['Desktop Chrome'], baseURL } } ] })