import { defineConfig } from '@playwright/test'; // Accessibility suite. Serves the built site and runs axe-core against each page. // Capped at 2 workers (multi-session RAM safety). export default defineConfig({ testDir: './e2e', workers: 2, reporter: 'list', use: { baseURL: 'http://localhost:4321' }, webServer: { command: 'npx astro preview --port 4321', url: 'http://localhost:4321', reuseExistingServer: !process.env.CI, timeout: 120_000, }, });