This repository was archived by the owner on Feb 24, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
53 lines (50 loc) · 1.16 KB
/
playwright.config.ts
File metadata and controls
53 lines (50 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { defineConfig, devices } from '@playwright/test'
export default defineConfig({
testDir: './e2e/hmr',
fullyParallel: true,
forbidOnly: !!process.env.CI,
// no retries because we have a setup
retries: 0,
// Each worker gets its own isolated temp folder
workers: process.env.CI ? 1 : undefined,
reporter: [
// for console logs
['list'],
// to debug
['html'],
],
use: {
/* Base URL to use in actions like `await page.goto('')`. */
// baseURL: 'http://localhost:3000',
trace: 'on-first-retry',
},
/* Configure projects for major browsers */
projects: [
// {
// name: 'chromium',
// use: { ...devices['Desktop Chrome'] },
// },
//
// {
// name: 'firefox',
// use: { ...devices['Desktop Firefox'] },
// },
//
{
name: 'hmr-routes',
testMatch: 'e2e/hmr/routes/hmr.spec.ts',
use: {
...devices['Desktop Safari'],
playgroundName: 'routes',
},
},
{
name: 'hmr-resolver',
testMatch: 'e2e/hmr/resolver/hmr.spec.ts',
use: {
...devices['Desktop Safari'],
playgroundName: 'resolver',
},
},
],
})