Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

playwright.opfs.config.ts

25 lines703 Bytes

1import { defineConfig } from '@playwright/test'
2​
3const baseURL = `http://127.0.0.1:4185`
4const browserChannel =
5 process.env.PLAYWRIGHT_CHANNEL ?? (process.env.CI ? undefined : `chrome`)
6​
7export default defineConfig({
8 testDir: `./e2e`,
9 testMatch: `shared-driver-fairness.opfs.spec.ts`,
10 timeout: 60_000,
11 fullyParallel: false,
12 workers: 1,
13 use: {
14 baseURL,
15 ...(browserChannel ? { channel: browserChannel } : {}),
16 headless: true,
17 trace: `retain-on-failure`,
18 },
19 webServer: {
20 command: `vite --config vite.opfs.config.ts --host 127.0.0.1 --port 4185`,
21 reuseExistingServer: false,
22 timeout: 120_000,
23 url: `${baseURL}/e2e/shared-driver-fairness.opfs.html`,
24 },
25})