Files
automaker/app/playwright.config.ts
Cody Seibert 3c8e786f29 initial commit
2025-12-07 16:43:26 -05:00

29 lines
658 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./tests",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: "html",
timeout: 10000,
use: {
baseURL: "http://localhost:3002",
trace: "on-first-retry",
screenshot: "only-on-failure",
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
webServer: {
command: "npm run dev -- -p 3002",
url: "http://localhost:3002",
reuseExistingServer: !process.env.CI,
timeout: 60000,
},
});