/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/browser-providers.js
26 строк
951 B
Kristiyan Kostadinov
build: run tests against Safari 26 (#32422)
27 ноя 2025, 17:45
Не верифицирован
27 ноя 2025, 17:45
c4d5ab8
Код
Авторство
О чём код?
/* * Browser Configuration for the different jobs in the legacy Karma tests. * * - `browserstack`: Launches the browser within BrowserStack */ const browserConfig = { 'Safari26': {unitTest: {target: 'browserstack'}}, }; /** Exports all available custom Karma browsers. */ exports.customLaunchers = require('./karma-browsers.json'); /** Exports a map of configured browsers, which should run in the given platform. */ exports.platformMap = { 'browserstack': buildConfiguration('unitTest', 'browserstack'), }; /** Build a list of configuration (custom launcher names). */ function buildConfiguration(type, target) { const targetBrowsers = Object.keys(browserConfig) .map(browserName => [browserName, browserConfig[browserName][type]]) .filter(([, config]) => config.target === target) .map(([browserName]) => browserName); return targetBrowsers.map(browserName => `${target.toUpperCase()}_${browserName.toUpperCase()}`); }