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