Files
suaveplan/packages/localization/i18n/react-i18n/playwright.config.ts
2026-05-27 23:47:53 +01:00

28 lines
792 B
TypeScript

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",
},
});