Files
suaveplan/e2e/foundation-stack/playwright.config.ts
2026-05-27 23:29:53 +01:00

23 lines
674 B
TypeScript

import { createPlaywrightConfig } from "@suaveplan/testing-e2e";
const PORT = Number.parseInt(process.env["E2E_PORT"] ?? "3501", 10);
const baseURL = `http://127.0.0.1:${PORT}`;
export default createPlaywrightConfig({
baseURL,
testDir: "./tests",
timeout: 30_000,
expect: { timeout: 5_000 },
reporter: process.env["CI"] ? "list" : "line",
projects: [{ name: "api", use: {} }],
webServer: {
command: `bun run src/server.ts`,
env: { PORT: String(PORT) },
url: `${baseURL}/internal/livez`,
reuseExistingServer: !process.env["CI"],
timeout: 30_000,
stdout: "pipe",
stderr: "pipe",
},
});