Files
RAPPORT-WEBSITE/themes/hextra/playwright.config.ts
T
2026-05-26 11:52:03 +02:00

22 lines
507 B
TypeScript

import { defineConfig } from "@playwright/test";
const baseURL = process.env.BASE_URL || "http://localhost:1313";
export default defineConfig({
testDir: "./tests",
timeout: 60_000,
retries: 0,
reporter: [["list"], ["html"]],
use: {
baseURL,
},
webServer: process.env.BASE_URL
? undefined
: {
command: "npx serve docs/public -l tcp://localhost:1313 --no-clipboard",
url: baseURL,
reuseExistingServer: !process.env.CI,
timeout: 30_000,
},
});