forked from ScelarOrg/Nodepod
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
34 lines (33 loc) · 846 Bytes
/
playwright.config.ts
File metadata and controls
34 lines (33 loc) · 846 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
import { defineConfig } from '@playwright/test';
export default defineConfig({
testDir: './src/__tests__/e2e',
timeout: 60000,
projects: [
{
name: 'git-clone',
testDir: './src/__tests__/e2e/git-clone',
testMatch: '*.test.ts',
use: { baseURL: 'http://localhost:4567' },
},
{
name: 'git-clone-api',
testDir: './src/__tests__/e2e/git-clone-api',
testMatch: '*.test.ts',
use: { baseURL: 'http://localhost:4568' },
},
],
webServer: [
{
command: 'npx vite --config src/__tests__/e2e/git-clone/vite.config.ts',
port: 4567,
reuseExistingServer: true,
timeout: 30000,
},
{
command: 'npx vite --config src/__tests__/e2e/git-clone-api/vite.config.ts',
port: 4568,
reuseExistingServer: true,
timeout: 30000,
},
],
});