// @ts-check import { defineConfig, devices } from '@playwright/test'; const PORT = 4173; const HOST = 'localhost'; const BASE_URL = `http://${HOST}:${PORT}`; export default defineConfig({ testDir: './tests', timeout: 30_000, expect: { timeout: 5_000, }, reporter: [['list']], use: { baseURL: BASE_URL, trace: 'retain-on-failure', }, webServer: { command: 'npm run dev', url: BASE_URL, reuseExistingServer: !process.env.CI, stdout: 'pipe', stderr: 'pipe', }, projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'] }, }, ], });