/
githubmirror
/
strapi
Обзор
Документация
Войти
/
githubmirror
/
strapi
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
tests/utils/runners/browser-runner.js
24 строки
649 B
Ben Irvin
test(e2e): fixes for race conditions and file resets (#26019)
20 апр 2026, 19:38
Не верифицирован
20 апр 2026, 19:38
e94abcb
Код
Авторство
О чём код?
'use strict'; const execa = require('execa'); /** * Run Playwright test command. * Only pass runner-owned env keys; execa merges with process.env by default (extendEnv: true). */ const runPlaywright = async ({ configPath, cwd, port, testAppPath, testArgs }) => { // `STRAPI_DISABLE_EE` / `STRAPI_E2E_EDITION` come from `applyE2eEditionEnv()` in run-tests.js (after dotenv). await execa('yarn', ['playwright', 'test', '--config', configPath, ...testArgs], { stdio: 'inherit', cwd, env: { PORT: String(port), HOST: '127.0.0.1', TEST_APP_PATH: testAppPath, }, }); }; module.exports = { runPlaywright, };