Files
tolaria/playwright.smoke.config.ts
2026-04-08 18:01:02 +02:00

27 lines
664 B
TypeScript

import { defineConfig } from '@playwright/test'
const baseURL = process.env.BASE_URL || 'http://127.0.0.1:41741'
const port = new URL(baseURL).port || '41741'
const reuseExistingServer = process.env.PLAYWRIGHT_REUSE_SERVER === '1'
export default defineConfig({
testDir: './tests',
timeout: 30_000,
retries: 1,
workers: 1,
grep: /@smoke/,
use: {
baseURL,
headless: true,
},
projects: [{ name: 'chromium', use: { browserName: 'chromium' } }],
webServer: {
command: `pnpm dev --host 127.0.0.1 --port ${port} --strictPort`,
url: baseURL,
reuseExistingServer,
timeout: 30_000,
stdout: 'pipe',
stderr: 'pipe',
},
})