forked from jay-sahnan/signal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
48 lines (46 loc) · 1.03 KB
/
Copy pathplaywright.config.ts
File metadata and controls
48 lines (46 loc) · 1.03 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
import { defineConfig } from "@playwright/test";
import dotenv from "dotenv";
dotenv.config({ path: ".env.local" });
export default defineConfig({
testDir: "./e2e",
timeout: 30_000,
retries: 0,
workers: 1, // sequential -- tests share DB state
use: {
baseURL: "http://localhost:3000",
extraHTTPHeaders: {
"Content-Type": "application/json",
},
},
webServer: {
command: "pnpm dev",
url: "http://localhost:3000",
reuseExistingServer: true,
timeout: 30_000,
},
projects: [
{
name: "auth",
testMatch: /(auth\.flow|api\.auth)\.test\.ts/,
use: { browserName: "chromium" },
},
{
name: "api",
testMatch: /api\.(?!auth\.).*\.test\.ts/,
},
{
name: "pages",
testMatch: /pages\..*\.test\.ts/,
use: { browserName: "chromium" },
},
{
name: "knowledge-base",
testMatch: /knowledge-base\..*\.test\.ts/,
},
{
name: "signals",
testMatch: /signals\.test\.ts/,
use: { browserName: "chromium" },
},
],
});