-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.js
More file actions
26 lines (24 loc) · 682 Bytes
/
playwright.config.js
File metadata and controls
26 lines (24 loc) · 682 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
import { nxE2EPreset } from "@nx/playwright/preset";
import { defineConfig, devices } from "@playwright/test";
import isCI from "is-ci";
const port = 51894;
// See https://playwright.dev/docs/test-configuration.
export default defineConfig({
...nxE2EPreset(import.meta.filename, { testDir: "./e2e" }),
forbidOnly: isCI,
use: {
baseURL: `http://localhost:${port}`,
},
webServer: {
command: `pnpm tsx ./node_modules/vite/bin/vite.js e2e/frontend --port ${port}`,
port: port,
reuseExistingServer: !isCI,
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
reporter: [["html", { open: "never" }]],
});