Initial Commit
This commit is contained in:
26
e2e/foundation-stack-saga/playwright.config.ts
Normal file
26
e2e/foundation-stack-saga/playwright.config.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
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",
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user