← back to Homesonspec
playwright.config.ts
26 lines
import { defineConfig } from "@playwright/test";
export default defineConfig({
testDir: "./tests/end-to-end",
timeout: 30_000,
retries: 0,
use: {
baseURL: "http://localhost:3100",
},
webServer: [
{
command: "pnpm --filter @homesonspec/web dev",
url: "http://localhost:3100",
reuseExistingServer: true,
timeout: 60_000,
},
{
command: "pnpm --filter @homesonspec/admin dev",
url: "http://localhost:3101",
reuseExistingServer: true,
timeout: 60_000,
// Admin returns 401 without creds — Playwright treats any response as "up".
},
],
});