import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ // only run Playwright tests in the integration folder to avoid running Jest unit tests testDir: './tests/integration', timeout: 30 * 1000, expect: { timeout: 5000, }, forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0, workers: process.env.CI ? 1 : undefined, reporter: [["list"], ["./tests/reporter/custom-reporter.js"]], use: { baseURL: process.env.BASE_URL || 'http://localhost:3000', }, });