A local-first personal finance app
import { defineConfig } from '@playwright/test';
export default defineConfig({
timeout: 120_000,
retries: process.env.CI ? 1 : 0,
testDir: 'e2e/',
// Builds the consumer fixture (e2e/consumer) once before the tests run.
globalSetup: './e2e/global-setup.mjs',
reporter: [['list']],
use: {
browserName: 'chromium',
baseURL: 'http://localhost:4180',
trace: 'on-first-retry',
},
webServer: {
command: 'node e2e/serve-dist.mjs',
url: 'http://localhost:4180/e2e/harness.html',
reuseExistingServer: !process.env.CI,
},
});