Files
buzz/desktop-next/playwright.config.ts
2026-09-09 08:50:47 -07:00

21 lines
610 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./tests",
fullyParallel: true,
workers: 2,
timeout: 30000,
reporter: [["list"], ["html", { open: "never" }]],
use: {
baseURL: "http://127.0.0.1:5189",
trace: "retain-on-failure",
screenshot: "only-on-failure",
},
projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }],
webServer: {
command: "pnpm exec vite preview --host 127.0.0.1 --port 5189 --strictPort",
url: "http://127.0.0.1:5189/design",
reuseExistingServer: false,
timeout: 30000,
},
});