Skip to content

Commit

Permalink
Update Lighthouse defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Dec 9, 2024
1 parent d61e77e commit 2f8fd0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/e2e-test-utils-playwright/src/lighthouse/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ export class Lighthouse {
* the summary.
*/
async getReport() {
// From https://github.com/GoogleChrome/lighthouse/blob/d149e9c1b628d5881ca9ca451278d99ff1b31d9a/core/config/default-config.js#L433-L503
// From https://github.com/GoogleChrome/lighthouse/blob/36cac182a6c637b1671c57326d7c0241633d0076/core/config/default-config.js#L381-L446
const audits = {
'largest-contentful-paint': 'LCP',
'total-blocking-time': 'TBT',
interactive: 'TTI',
'cumulative-layout-shift': 'CLS',
'experimental-interaction-to-next-paint': 'INP',
'interaction-to-next-paint': 'INP',
};

const report = await lighthouse(
Expand Down

0 comments on commit 2f8fd0c

Please sign in to comment.