Files

31 lines
837 B
TypeScript

import { defineConfig } from "@playwright/test";
export default defineConfig({
testDir: "./e2e",
fullyParallel: false,
forbidOnly: Boolean(process.env.CI),
retries: process.env.CI ? 1 : 0,
reporter: process.env.CI ? "line" : "list",
use: {
baseURL: "http://127.0.0.1:4173",
trace: "retain-on-failure",
screenshot: "only-on-failure",
},
webServer: [
{
command: "python -m uv run --directory backend --locked --extra dev python -m uvicorn app.main:app --host 127.0.0.1 --port 8000",
cwd: "..",
url: "http://127.0.0.1:8000/health",
reuseExistingServer: false,
timeout: 30_000,
},
{
command: "npm run dev -- --host 127.0.0.1 --port 4173",
cwd: ".",
url: "http://127.0.0.1:4173",
reuseExistingServer: false,
timeout: 30_000,
},
],
});