LighthouseAssertion
Defined in: index.ts:6
Lighthouse CI assertions for the audits this package knows about, plus any other audit by id. Each is a [level, options] pair, where the level is off, warn or error.
Indexable
Section titled “Indexable”[
key:string]:MinScoreAssertion|MaxLengthAssertion|undefined
Properties
Section titled “Properties”bf-cache?
Section titled “bf-cache?”
optionalbf-cache?:MinScoreAssertion
Defined in: index.ts:8
Assertion for the back/forward cache audit; fails below minScore.
errors-in-console?
Section titled “errors-in-console?”
optionalerrors-in-console?:MinScoreAssertion
Defined in: index.ts:10
Assertion for the audit of errors logged to the browser console; fails below minScore.
font-display?
Section titled “font-display?”
optionalfont-display?:MinScoreAssertion
Defined in: index.ts:12
Assertion for the font-display audit; fails below minScore.
label?
Section titled “label?”
optionallabel?:MinScoreAssertion
Defined in: index.ts:14
Assertion for the audit that checks form elements have labels; fails below minScore.
largest-contentful-paint?
Section titled “largest-contentful-paint?”
optionallargest-contentful-paint?:MinScoreAssertion
Defined in: index.ts:16
Assertion for the Largest Contentful Paint audit; fails below minScore.
lcp-lazy-loaded?
Section titled “lcp-lazy-loaded?”
optionallcp-lazy-loaded?:MinScoreAssertion
Defined in: index.ts:18
Assertion for the audit that flags a lazy-loaded Largest Contentful Paint image; fails below minScore.
non-composited-animations?
Section titled “non-composited-animations?”
optionalnon-composited-animations?:MinScoreAssertion
Defined in: index.ts:20
Assertion for the audit that flags animations that cannot run on the compositor; fails below minScore.
prioritize-lcp-image?
Section titled “prioritize-lcp-image?”
optionalprioritize-lcp-image?:MinScoreAssertion
Defined in: index.ts:22
Assertion for the audit that checks the Largest Contentful Paint image is prioritised; fails below minScore.
unused-javascript?
Section titled “unused-javascript?”
optionalunused-javascript?:MaxLengthAssertion
Defined in: index.ts:24
Assertion for the unused JavaScript audit; maxLength caps how many items it may report.
uses-long-cache-ttl?
Section titled “uses-long-cache-ttl?”
optionaluses-long-cache-ttl?:MaxLengthAssertion
Defined in: index.ts:26
Assertion for the cache lifetime audit; maxLength caps how many items it may report.