import { defineConfig, devices } from "@playwright/test"; export default defineConfig({ testDir: "./tests/e2e", timeout: 30_000, use: { baseURL: process.env.PLAYWRIGHT_BASE_URL ?? "http://127.0.0.1:3000", storageState: process.env.PLAYWRIGHT_STORAGE_STATE, trace: "on-first-retry", }, webServer: { command: "pnpm dev", url: process.env.PLAYWRIGHT_BASE_URL ?? "http://127.0.0.1:3000", reuseExistingServer: true, timeout: 120_000, }, projects: [ { name: "chromium", use: { ...devices["Desktop Chrome"] }, }, ], });