forked from ueberdosis/tiptap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
28 lines (26 loc) · 843 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
28 lines (26 loc) · 843 Bytes
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
import { defineConfig, devices } from '@playwright/test'
process.env.NODE_OPTIONS = [process.env.NODE_OPTIONS, '--require tsconfig-paths/register']
.filter(Boolean)
.join(' ')
export default defineConfig({
testDir: './demos',
testMatch: '**/*.spec.ts',
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
reporter: process.env.CI ? [['github'], ['blob']] : [['line'], ['html', { open: 'never' }]],
use: {
baseURL: 'http://127.0.0.1:4080',
trace: 'on-first-retry',
},
projects: [
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
{ name: 'firefox', use: { ...devices['Desktop Firefox'] } },
],
webServer: {
command: 'pnpm -C demos run start:e2e',
url: 'http://127.0.0.1:4080',
reuseExistingServer: !process.env.CI,
timeout: 120000,
},
})