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

Function validateAudits

packages/plugin-lighthouse/src/lib/utils.ts:127–135  ·  view source on GitHub ↗
(audits: Audit[], onlyAudits: string[])

Source from the content-addressed store, hash-verified

125}
126
127export function validateAudits(audits: Audit[], onlyAudits: string[]): boolean {
128 const missingAudtis = toArray(onlyAudits).filter(
129 slug => !audits.some(audit => audit.slug === slug),
130 );
131 if (missingAudtis.length > 0) {
132 throw new NotImplementedError('Audits', missingAudtis);
133 }
134 return true;
135}
136
137export function validateOnlyCategories(
138 groups: Group[],

Callers 2

utils.unit.test.tsFile · 0.85

Calls 1

toArrayFunction · 0.90

Tested by

no test coverage detected