import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ testDir: 'tests/e2e', testMatch: '**/*.spec.mjs', snapshotPathTemplate: '{testDir}/snapshots/{arg}{ext}', timeout: 30_000, expect: { timeout: 5_000 }, fullyParallel: false, forbidOnly: !!process.env.CI, retries: 0, reporter: process.env.CI ? 'github' : 'list', use: { baseURL: `file://${import.meta.dirname}/playground/`, trace: 'retain-on-failure', }, projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'] }, }, ], });