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

playwright.config.ts

30 lines698 Bytes

1import { defineConfig, devices } from '@playwright/test'
2​
3export default defineConfig({
4 testDir: './tests',
5 fullyParallel: true,
6 forbidOnly: !!process.env.CI,
7 retries: process.env.CI ? 1 : 0,
8 reporter: process.env.CI ? 'github' : 'list',
9 use: {
10 baseURL: 'http://localhost:4176',
11 trace: 'on-first-retry',
12 },
13 projects: [
14 {
15 name: 'chromium',
16 use: {
17 ...devices['Desktop Chrome'],
18 launchOptions: {
19 args: ['--enable-features=DocumentPictureInPictureAPI'],
20 },
21 },
22 },
23 ],
24 webServer: {
25 command: 'pnpm run dev',
26 url: 'http://localhost:4176',
27 timeout: 180_000,
28 reuseExistingServer: !process.env.CI,
29 },
30})