/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
fixtures/flight/playwright.config.js
31 строка
737 B
Hendrik Liebau
Update `react-refresh-webpack-plugin` in Flight fixture (#30156)
01 июл 2024, 11:01
Не верифицирован
01 июл 2024, 11:01
b20d232
Код
Авторство
О чём код?
import {defineConfig, devices} from '@playwright/test'; const isCI = Boolean(process.env.CI); export default defineConfig({ // relative to this configuration file. testDir: '__tests__/__e2e__', fullyParallel: true, // Fail the build on CI if you accidentally left test.only in the source code. forbidOnly: !isCI, retries: isCI ? 2 : 0, // Opt out of parallel tests on CI. workers: isCI ? 1 : undefined, reporter: 'html', use: { baseURL: 'http://localhost:3000', trace: 'on-first-retry', }, projects: [ { name: 'chromium', use: {...devices['Desktop Chrome']}, }, ], webServer: { command: 'yarn dev', url: 'http://localhost:3000', reuseExistingServer: !isCI, }, });