/
githubmirror
/
trpc
Обзор
Документация
Войти
/
githubmirror
/
trpc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/nuxt/playwright.config.ts
50 строк
1 KB
Copilot
ci(example): fix Playwright e2e ffmpeg failures (#7412)
20 июн 2026, 22:08
Не верифицирован
20 июн 2026, 22:08
340811b
Код
Авторство
О чём код?
import type { Config } from '@playwright/test'; import { devices } from '@playwright/test'; const opts = { headless: !!process.env.CI || !!process.env.PLAYWRIGHT_HEADLESS, }; /** * See https://playwright.dev/docs/test-configuration. */ const config: Config = { testDir: './test', reporter: [['line']], retries: 3, webServer: [ { command: 'NITRO_PRESET=node_server pnpm build && pnpm start --port 3000', port: 3000, reuseExistingServer: !process.env.CI, }, { command: 'pnpm dev --port 3001', port: 3001, reuseExistingServer: !process.env.CI, }, ], projects: [ { name: 'prod', use: { ...opts, ...devices['Desktop Chrome'], channel: process.env.CI ? 'chrome' : undefined, baseURL: 'http://localhost:3000/', }, }, { name: 'dev', use: { ...opts, ...devices['Desktop Chrome'], channel: process.env.CI ? 'chrome' : undefined, baseURL: 'http://localhost:3001/', }, }, ], }; export default config;