/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import * as LH from '../../types/lh.js'; /** @type {LH.Config} */ const config = { extends: 'lighthouse:default', settings: { maxWaitForFcp: 15 * 1000, maxWaitForLoad: 35 * 1000, throttling: { // Determined using PSI CPU benchmark median and // https://lighthouse-cpu-throttling-calculator.vercel.app/ cpuSlowdownMultiplier: 1.2, }, skipAudits: [ // There are always bf-cache failures when testing in headless. Reenable when headless can give us realistic bf-cache insights. 'bf-cache', ], }, audits: [ // Lightrider does not support WebSocket connections. // See https://github.com/GoogleChrome/lighthouse/issues/12459 { path: 'errors-in-console', options: { ignoredPatterns: [ 'ERR_BLOCKED_BY_CLIENT.Inspector', /^WebSocket connection to 'wss?:\/\/.*' failed:/, ], }, }, ], }; export default config;