Open History to see the last commit
1import { defineConfig, devices } from '@playwright/test'
2β
3const PORT = 3000
4const baseURL = `http://localhost:${PORT}`
5β
6export default defineConfig({
7 testDir: './tests',
8 workers: 1,
9 reporter: [['line']],
10β
11 use: {
12 baseURL,
13 },
14β
15 webServer: {
16 command: `PORT=${PORT} pnpm start`,
17 url: baseURL,
18 reuseExistingServer: false,
19 stdout: 'pipe',
20 },
21β
22 projects: [
23 {
24 name: 'chromium',
25 use: { ...devices['Desktop Chrome'] },
26 },
27 ],
28})