forked from wakujs/waku
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
33 lines (31 loc) · 833 Bytes
/
playwright.config.ts
File metadata and controls
33 lines (31 loc) · 833 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
import { defineConfig } from "@playwright/test";
import { resolve } from "node:path";
import { config } from "./playwright.config.base.js";
import { fileURLToPath } from "node:url";
const rootDir = fileURLToPath(new URL(".", import.meta.url));
export default defineConfig({
...config,
testDir: "./e2e",
webServer: [
{
command: "pnpm run build && pnpm run start",
cwd: resolve(rootDir, "examples", "01_counter"),
port: 3000,
timeout: 10 * 1000,
reuseExistingServer: !process.env.CI,
env: {
PORT: "3000",
},
},
{
command: "pnpm run build && pnpm run start",
cwd: resolve(rootDir, "examples", "02_async"),
port: 3001,
timeout: 10 * 1000,
reuseExistingServer: !process.env.CI,
env: {
PORT: "3001",
},
},
],
});