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

playwright.opfs.config.ts

35 lines1.0 KB

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: [
10 `shared-driver-fairness-oracle.opfs.spec.ts`,
11 `remote-subset-two-tab.opfs.spec.ts`,
12 `cache-claim-notice.opfs.spec.ts`,
13 `open-timeout.opfs.spec.ts`,
14 `hydration-commit.opfs.spec.ts`,
15 `leader-close-oracle.opfs.spec.ts`,
16 `leader-close.opfs.spec.ts`,
17 `opfs-request-order-oracle.opfs.spec.ts`,
18 `reload-class-oracle.opfs.spec.ts`,
19 ],
20 timeout: 60_000,
21 fullyParallel: false,
22 workers: 1,
23 use: {
24 baseURL,
25 ...(browserChannel ? { channel: browserChannel } : {}),
26 headless: true,
27 trace: `retain-on-failure`,
28 },
29 webServer: {
30 command: `vite --config vite.opfs.config.ts --host 127.0.0.1 --port 4185`,
31 reuseExistingServer: false,
32 timeout: 120_000,
33 url: `${baseURL}/e2e/shared-driver-fairness.opfs.html`,
34 },
35})