import { defineConfig } from "@playwright/test"; import { resolve } from "node:path"; export const HUB_HOME = resolve(import.meta.dirname, ".e2e-hub"); export const HUB_PORT = 8791; export const HUB_URL = `http://127.0.0.1:${HUB_PORT}`; export default defineConfig({ testDir: "e2e", workers: 1, timeout: 60_000, use: { baseURL: HUB_URL, trace: "retain-on-failure", viewport: { width: 1600, height: 1000 } }, webServer: { command: "npm run build && bash scripts/test-hub.sh", url: `${HUB_URL}/app/`, reuseExistingServer: false, stdout: "pipe", stderr: "pipe", timeout: 120_000, env: { SDLC_HUB_HOME: HUB_HOME, PORT: String(HUB_PORT) }, }, });