import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ testDir: './tests/e2e', timeout: 60_000, fullyParallel: true, forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0, workers: process.env.CI ? 1 : undefined, reporter: 'html', globalSetup: './tests/e2e/globalSetup.ts', use: { baseURL: 'http://localhost:3000', trace: 'on-first-retry', }, projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'] }, }, ], webServer: { command: 'npm run migrate && npm run dev', url: 'http://localhost:3000', reuseExistingServer: false, timeout: 120 * 1000, env: { SESSION_SECRET: 'e2e-secret' }, }, });