import { defineConfig, devices } from "@playwright/test"; export default defineConfig({ testDir: "./tests/e2e", timeout: 30_000, use: { baseURL: "http://127.0.0.1:3400", trace: "retain-on-failure", ...devices["Desktop Chrome"], }, webServer: { command: "node dist/server/index.js", url: "http://127.0.0.1:3400/health", reuseExistingServer: false, timeout: 120_000, env: { NODE_ENV: "production", TALLYNOTE_HOST: "127.0.0.1", TALLYNOTE_PORT: "3400", TALLYNOTE_PUBLIC_ORIGIN: "http://127.0.0.1:3400", TALLYNOTE_COOKIE_SECURE: "false", TALLYNOTE_DATA_DIR: "/tmp/tallynote-e2e", }, }, });