lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

Do something if an invalid category is provided

Open G-Rath opened this issue 1 year ago • 0 comments

Feature request summary

It seems like currently the CLI does not validate the actual categories provided for --only-categories - this tripped us up as we were using the PWA category which has since been removed, and so our RSpec matcher started to bomb out.

This has lead to a round of improvements for our matcher which including explicitly checking that the category is present in the output before trying to extract the score, but it occurred to me that it could be useful for everyone if the CLI itself was to better hint at this - even if it was just to add an entry to runWarnings, that could be helpful.

What is the motivation or use case for changing this?

Reduce confusion, making lives easier, etc

How is this beneficial to Lighthouse?

Make it easier for folks to update to newer versions since they can be confident they'll know if a category they're depending on suddenly goes away

G-Rath avatar Jun 22 '24 21:06 G-Rath