quicknotes/playwright.config.ts

20 lines
487 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: 0,
workers: 1, // Recommended for test isolation with database
reporter: 'html',
use: {
baseURL: 'http://localhost:3000',
trace: 'on',
},
webServer: {
command: 'go run main.go',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
timeout: 120 * 1000,
},
});