Build a list of configuration (custom launcher names).
(type, target)
| 17 | |
| 18 | /** Build a list of configuration (custom launcher names). */ |
| 19 | function buildConfiguration(type, target) { |
| 20 | const targetBrowsers = Object.keys(browserConfig) |
| 21 | .map(browserName => [browserName, browserConfig[browserName][type]]) |
| 22 | .filter(([, config]) => config.target === target) |
| 23 | .map(([browserName]) => browserName); |
| 24 | |
| 25 | return targetBrowsers.map(browserName => `${target.toUpperCase()}_${browserName.toUpperCase()}`); |
| 26 | } |
no test coverage detected