import { defineConfig, devices } from "@playwright/test"; const PORT = 4173; const BASE_URL = `http://127.0.0.1:${PORT}`; export default defineConfig({ testDir: "./tests/e2e", fullyParallel: false, forbidOnly: !!process.env.CI, retries: 0, workers: 1, reporter: [["list"]], use: { baseURL: BASE_URL, trace: "retain-on-failure", }, projects: [ { name: "chromium-desktop", use: { ...devices["Desktop Chrome"], viewport: { width: 1280, height: 720 }, }, }, { name: "chromium-full", use: { ...devices["Desktop Chrome"], viewport: { width: 1920, height: 1080 }, }, }, ], webServer: { command: "bun run build && bun run preview -- --host 127.0.0.1 --port 4173", url: BASE_URL, reuseExistingServer: !process.env.CI, timeout: 120_000, }, });