Files
famapp/playwright.config.ts
T
2026-05-06 03:10:28 -05:00

24 lines
578 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./tests/e2e",
timeout: 30_000,
use: {
baseURL: process.env.PLAYWRIGHT_BASE_URL ?? "http://127.0.0.1:3000",
storageState: process.env.PLAYWRIGHT_STORAGE_STATE,
trace: "on-first-retry",
},
webServer: {
command: "pnpm dev",
url: process.env.PLAYWRIGHT_BASE_URL ?? "http://127.0.0.1:3000",
reuseExistingServer: true,
timeout: 120_000,
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
});