Files
botfights/e2e/playwright.config.ts
T

32 lines
622 B
TypeScript
Raw Normal View History

import { defineConfig, devices } from '@playwright/test'
export default defineConfig({
testDir: '.',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: 'html',
timeout: 30_000,
use: {
baseURL: 'http://localhost:9101',
trace: 'on-first-retry',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
webServer: {
command: 'pnpm dev',
url: 'http://localhost:9101',
reuseExistingServer: !process.env.CI,
timeout: 120_000,
cwd: '..',
},
})