MCPcopy Create free account
hub / github.com/code-pushup/cli / extractGroupSlugs

Function extractGroupSlugs

packages/utils/src/lib/plugin-url-aggregation.ts:20–23  ·  view source on GitHub ↗
(groups: Group[])

Source from the content-addressed store, hash-verified

18}
19
20export function extractGroupSlugs(groups: Group[]): string[] {
21 const slugs = groups.map(({ slug }) => removeIndex(slug));
22 return [...new Set(slugs)];
23}
24
25export function resolveUrlWeight(
26 weights: PluginUrlContext['weights'],

Callers 3

lighthouseGroupSlugsFunction · 0.90
axeGroupSlugsFunction · 0.90

Calls 1

removeIndexFunction · 0.85

Tested by

no test coverage detected