import { defineConfig, devices } from '@playwright/test'; const isCI = !!process.env.CI; export default defineConfig({ testDir: 'e2e', testMatch: /.*\.test\.ts$/, forbidOnly: isCI, retries: isCI ? 2 : 0, reporter: isCI ? [['html', { open: 'never' }], ['github']] : [['list']], use: { baseURL: 'http://localhost:5173' }, projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'] } }, { name: 'firefox', use: { ...devices['Desktop Firefox'] } }, ], webServer: { command: 'yarn dlx http-server . -p 5173 -s', port: 5173, reuseExistingServer: !isCI, }, });