import { defineConfig, devices } from '@playwright/test'; /** * Realtime e2e against the BUILT server (serves dist + /ws on one origin). * Run: bun run build && bun run build:server && bunx playwright test -c playwright.realtime.config.ts */ export default defineConfig({ testDir: './e2e-realtime', fullyParallel: false, reporter: 'line', use: { baseURL: 'http://localhost:8799', trace: 'off' }, projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }], webServer: { command: 'STATIC_DIR=dist PORT=8799 node server/dist/index.js', url: 'http://localhost:8799/healthz', reuseExistingServer: true, timeout: 30_000, }, });