Files
pi-kit/pikit-web/playwright.config.js
2025-12-10 18:51:31 -05:00

33 lines
616 B
JavaScript

// @ts-check
import { defineConfig, devices } from '@playwright/test';
const PORT = 4173;
const HOST = 'localhost';
const BASE_URL = `http://${HOST}:${PORT}`;
export default defineConfig({
testDir: './tests',
timeout: 30_000,
expect: {
timeout: 5_000,
},
reporter: [['list']],
use: {
baseURL: BASE_URL,
trace: 'retain-on-failure',
},
webServer: {
command: 'npm run dev',
url: BASE_URL,
reuseExistingServer: !process.env.CI,
stdout: 'pipe',
stderr: 'pipe',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
});