-
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
35 lines (34 loc) · 922 Bytes
/
playwright.config.ts
File metadata and controls
35 lines (34 loc) · 922 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
29
30
31
32
33
34
35
import { defineConfig } from '@playwright/test';
export default defineConfig({
workers: process.env.CI ? 1 : undefined,
testDir: 'tests',
reporter: [['html', { outputFolder: 'tests/.report' }]],
retries: 1,
use: { trace: 'on-first-retry' },
outputDir: 'tests/.results',
webServer: [
{
name: 'custom-server',
cwd: 'examples/custom-server',
command: 'npm run dev',
env: { PORT: '3003' },
port: 3003,
reuseExistingServer: !process.env.CI,
},
{
name: 'chat-room',
cwd: 'examples/chat-room',
command: 'npm run dev -- --port 3001',
port: 3001,
reuseExistingServer: !process.env.CI,
},
{
name: 'base-path',
cwd: 'examples/base-path',
command: 'npm run dev -- --port 3002',
port: 3002,
reuseExistingServer: !process.env.CI,
},
// Note: redis-adapter tests spawn their own instances
],
});