Replies: 2 comments 2 replies
-
|
I'm not sure what this assert matrix is. In Lighthouse if you want to adjust audit specific options you need to do so on the config: const config = {
extends: 'lighthouse:default',
audits: [
{path: 'errors-in-console', options: {ignoredPatterns: ['pattern1']}}
]
} |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
You need to use the following Lighthouse config: export default {
extends: 'lighthouse:default',
audits: [
{path: 'errors-in-console', options: {
ignoredPatterns: '...',
}},
],
};This is how you configure the Lighthouse configuration used in LHCI: https://github.com/GoogleChrome/lighthouse-ci/blob/main/docs/configuration.md#custom-lighthouse-config |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




Uh oh!
There was an error while loading. Please reload this page.
-
I want to ignore content security policy error in console, and I found there is an option to ignore these errors: https://github.com/GoogleChrome/lighthouse/pull/9480/files
How can I add this ignore pattern option to my assert matrix so errors-in-console assertion can pass? For example:
matrix: {
'matchingUrlPattern': '.*',
'assertions': {
'errors-in-console': ['error', {'minScore': 1}],
}
}
Beta Was this translation helpful? Give feedback.
All reactions