19 lines
545 B
TypeScript
19 lines
545 B
TypeScript
import { defineConfig } from "@playwright/test";
|
|
|
|
export default defineConfig({
|
|
testDir: ".",
|
|
testMatch: "**/e2e/**/*.spec.ts",
|
|
use: {
|
|
baseURL: "http://localhost:5173",
|
|
trace: "on-first-retry",
|
|
video: "on-first-retry",
|
|
},
|
|
webServer: {
|
|
command: "bun run --filter @paratype/chess dev",
|
|
url: "http://localhost:5173",
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: 30000,
|
|
},
|
|
reporter: [["html", { open: "never" }], ["list"]],
|
|
workers: 1, // prevent parallel workers from sharing the single dev server
|
|
});
|