import { devices } from "@playwright/test"; import { createPlaywrightConfig } from "@suaveplan/testing-e2e/config"; export default createPlaywrightConfig({ testDir: "./e2e", testMatch: /\.spec\.ts$/, timeout: 30_000, expect: { timeout: 5_000 }, reporter: process.env["CI"] ? [["list"], ["html", { open: "never" }]] : [["list"]], projects: [ { name: "chromium", use: { ...devices["Desktop Chrome"] }, }, ], webServer: { command: "bunx vite --config e2e/test-app/vite.config.ts", url: "http://127.0.0.1:5273/", reuseExistingServer: !process.env["CI"], timeout: 120_000, stdout: "pipe", stderr: "pipe", }, use: { baseURL: "http://127.0.0.1:5273", }, });