Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

playwright.config.ts

28 lines474 Bytes

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})