-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
52 lines (51 loc) · 1.33 KB
/
Copy pathplaywright.config.ts
File metadata and controls
52 lines (51 loc) · 1.33 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
import { defineConfig } from "@playwright/test";
export default defineConfig({
testDir: "./e2e",
timeout: 5_000,
workers: 3,
retries: 0,
projects: [
{
name: "basic",
testMatch:
/basic\.test\.ts|navigation\.test\.ts|node-build\.test\.ts|cloudflare-build\.test\.ts|vercel-build\.test\.ts|client-bundle-strip\.test\.ts|tsrx-build\.test\.ts|islands-build\.test\.ts|env-safety\.test\.ts|not-found\.test\.ts/,
use: {
baseURL: "http://localhost:3100",
},
},
{
name: "pages-router",
testMatch: /pages-router\.test\.ts|dev-404\.test\.ts/,
use: {
baseURL: "http://localhost:3101",
},
},
{
name: "islands",
testMatch: /islands-dev\.test\.ts/,
use: {
baseURL: "http://localhost:3102",
},
},
],
webServer: [
{
command: "node e2e/start-dev-server.mjs examples/cloudflare 3100",
port: 3100,
reuseExistingServer: !process.env.CI,
timeout: 15_000,
},
{
command: "node e2e/start-dev-server.mjs examples/pages-router 3101",
port: 3101,
reuseExistingServer: !process.env.CI,
timeout: 15_000,
},
{
command: "node e2e/start-dev-server.mjs examples/islands 3102",
port: 3102,
reuseExistingServer: !process.env.CI,
timeout: 15_000,
},
],
});