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

Function createCategories

packages/plugin-lighthouse/src/lib/categories.ts:52–59  ·  view source on GitHub ↗
(
  plugin: Pick<PluginConfig, 'groups' | 'context'>,
)

Source from the content-addressed store, hash-verified

50export const mergeLighthouseCategories = lighthouseCategories;
51
52function createCategories(
53 plugin: Pick<PluginConfig, 'groups' | 'context'>,
54): CategoryConfig[] {
55 const context = validate(pluginUrlContextSchema, plugin.context);
56 return lighthouseGroupSlugs(plugin).map(slug =>
57 createAggregatedCategory(slug, context),
58 );
59}
60
61function expandCategories(
62 plugin: Pick<PluginConfig, 'context'>,

Callers 1

lighthouseCategoriesFunction · 0.70

Calls 3

validateFunction · 0.90
lighthouseGroupSlugsFunction · 0.85
createAggregatedCategoryFunction · 0.85

Tested by

no test coverage detected