mirror of
https://github.com/hanzoai/ventures.git
synced 2026-10-30 18:18:25 +00:00
25 lines
732 B
TypeScript
25 lines
732 B
TypeScript
import { defineConfig, devices } from '@playwright/test'
|
|
|
|
const PORT = 4321
|
|
|
|
export default defineConfig({
|
|
testDir: './e2e',
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 1 : 0,
|
|
reporter: process.env.CI ? 'list' : 'html',
|
|
use: {
|
|
baseURL: `http://127.0.0.1:${PORT}`,
|
|
trace: 'retain-on-failure',
|
|
},
|
|
projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
|
|
// The subject is `out/` — the bytes that ship — never a dev server. A dev
|
|
// server rebuilds on demand and would let a broken export pass.
|
|
webServer: {
|
|
command: 'node e2e/serve.mjs',
|
|
url: `http://127.0.0.1:${PORT}/`,
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: 30_000,
|
|
},
|
|
})
|