MCPcopy Create free account
hub / github.com/angular/components / buildConfiguration

Function buildConfiguration

test/browser-providers.js:19–26  ·  view source on GitHub ↗

Build a list of configuration (custom launcher names).

(type, target)

Source from the content-addressed store, hash-verified

17
18/** Build a list of configuration (custom launcher names). */
19function 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}

Callers 1

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected