Open History to see the last commit
1import { defineConfig, devices } from '@playwright/test'
2import { appServerReady } from '@tanstack/router-e2e-utils'
3β
4const PORT = Number(process.env.E2E_APP_PORT ?? 0)
5const baseURL = `https://localhost:${PORT}`
6β
7export default defineConfig({
8 testDir: './tests',
9 workers: 1,
10 reporter: [['line']],
11β
12 use: {
13 baseURL,
14 ignoreHTTPSErrors: true,
15 },
16β
17 webServer: {
18 command: `pnpm build && pnpm start`,
19 wait: appServerReady,
20 reuseExistingServer: false,
21 stdout: 'pipe',
22 ignoreHTTPSErrors: true,
23 env: {
24 PORT: String(PORT),
25 },
26 },
27β
28 projects: [
29 {
30 name: 'chromium',
31 use: {
32 ...devices['Desktop Chrome'],
33 },
34 },
35 ],
36})