import { defineConfig } from "@playwright/test"; export default defineConfig({ testDir: "./tests/e2e", timeout: 30_000, expect: { timeout: 10_000 }, fullyParallel: true, retries: process.env.CI ? 1 : 0, workers: process.env.CI ? 2 : 1, use: { baseURL: "http://localhost:4173/_app/", trace: "on-first-retry", }, webServer: { command: "bun run build && bun run preview -- --port 4173 --strictPort", port: 4173, reuseExistingServer: !process.env.CI, timeout: 120_000, }, });