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

27 lines
839 B
TypeScript

import { createPlaywrightConfig } from "@suaveplan/testing-e2e";
const PORT = Number.parseInt(process.env["E2E_PORT"] ?? "3611", 10);
const baseURL = `http://127.0.0.1:${PORT}`;
export default createPlaywrightConfig({
baseURL,
testDir: "./tests",
timeout: 60_000,
expect: { timeout: 10_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"],
// First boot pulls postgres:16 image — allow up to 5 minutes
// (subsequent runs with a cached image complete in seconds).
timeout: 300_000,
stdout: "pipe",
stderr: "pipe",
},
});