Files
portfolio-next/playwright.config.ts
T
2026-11-09 07:06:19 +01:00

20 lines
651 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
// Builds the synthetic fixture content and serves it with the app's own static server.
export default defineConfig({
testDir: 'e2e',
fullyParallel: true,
reporter: [['list']],
use: { baseURL: 'http://localhost:4378' },
projects: [
{ name: 'desktop', use: { ...devices['Desktop Chrome'] } },
{ name: 'phone', use: { ...devices['Pixel 7'] } },
],
webServer: {
command: 'bun src/cli.ts build fixtures/content .tmp/e2e-site && bun src/cli.ts preview .tmp/e2e-site 4378',
url: 'http://localhost:4378/',
timeout: 180_000,
reuseExistingServer: false,
},
});