Files
tolaria/playwright.config.ts
2026-03-09 00:58:24 +01:00

19 lines
520 B
TypeScript

import { defineConfig } from '@playwright/test'
export default defineConfig({
testDir: './tests/smoke',
timeout: 15_000,
retries: 1,
workers: 1,
use: {
baseURL: process.env.BASE_URL || 'http://localhost:5201',
headless: true,
},
projects: [{ name: 'chromium', use: { browserName: 'chromium' } }],
webServer: {
command: `pnpm dev --port ${process.env.BASE_URL?.match(/:(\d+)/)?.[1] || '5201'}`,
url: process.env.BASE_URL || 'http://localhost:5201',
reuseExistingServer: true,
},
})