playwright.config.ts
480 Bytes
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests/e2e',
timeout: 30000,
retries: 0,
use: {
baseURL: 'http://localhost:5173',
headless: true,
trace: 'on-first-retry',
},
webServer: {
command: 'npm run dev',
url: 'http://localhost:5173',
reuseExistingServer: !process.env.CI,
timeout: 60000,
},
projects: [
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
],
});