-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting onlyAudits
, onlyCategories
and skipAudits
to []
returns unexpected LHR
#14986
Comments
This is working as expected. We could consider throwing an error at config resolution if no audits match the filter criteria. |
My expectation was a little bit different: Empty array = no values are set. No filtering is used. I might the be the only person who experiences this issue (but thought I'd log, just in case), might not be a big deal, but I think it would be helpful to either throw an error, or add a log line during configuration resolution. |
Let's throw specific errors when |
@connorjclark Any pointers as to where to start looking in the code or other valuable info? |
Hi @connorjclark , As stated in my PR, this issue refers also to throwing an error for the case in which I would suggest not changing any Thanks! @benschwarz FYI |
FAQ
URL
https://example.com
What happened?
Setting
onlyAudits
,onlyCategories
, andskipAudits
to an empty array[]
rather thannull
results in incomplete LHR JSON.What was missing
lhr.categories
returns{}
Repro script
What did you expect?
Expected
lhr.categories
to include category information.What have you tried?
Setting to
null
rather than an[]
results in a full LHR.How were you running Lighthouse?
node
Lighthouse Version
10.1.0
Chrome Version
112.0.5615.121
Node Version
18.7.X
OS
Mac
Relevant log output
No response
The text was updated successfully, but these errors were encountered: