You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using onlyAudits or onlyGroups in the Lighthouse plugin configuration, unexpected errors are thrown, indicating that category references are invalid due to missing audits or groups.
Examples of errors:
For onlyGroups: ['performance']:
custom: The following category references need to point to an audit or group: lighthouse#accessibility (group), lighthouse#best-practices (group), lighthouse#seo (group)
For onlyAudits: ['csp-xss']:
custom: The following category references need to point to an audit or group: lighthouse#performance (group), lighthouse#accessibility (group), lighthouse#seo (group)
What would you expect to happen?
Categories should dynamically adjust their references to match the filtered audits and groups.
Invalid references should be removed without throwing errors.
Groups with no valid references should be excluded from the final configuration.
Informational logs should detail which audits, groups, and categories were filtered out.
hanna-skryl
changed the title
Fix onlyAudits and onlyCategories errors in Lighthouse plugin
Fix onlyAudits and onlyGroups errors in Lighthouse plugin
Dec 24, 2024
What happened?
When using
onlyAudits
oronlyGroups
in the Lighthouse plugin configuration, unexpected errors are thrown, indicating that category references are invalid due to missing audits or groups.Examples of errors:
onlyGroups: ['performance']
:onlyAudits: ['csp-xss']
:What would you expect to happen?
What steps did you take?
Set
onlyGroups
inlighthouseCoreConfig
:Set
onlyAudits
inlighthouseCoreConfig
:Proposed Fix
isSkipped
audits and groups.Code PushUp package version
No response
What operation system are you on?
MacOS
Node version
v22.10.0
Relevant log output
The text was updated successfully, but these errors were encountered: