Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test: () => ChromeLauncher.getInstallations().length > 0,
},
headful: {type: 'boolean', description: 'Run with a headful Chrome'},
additive: {type: 'boolean', description: 'Skips clearing of previous collect data'},
url: {
description:
'A URL to run Lighthouse on. Use this flag multiple times to evaluate multiple URLs.',
},
staticDistDir: {
description: 'The build directory where your HTML files to run Lighthouse on are located.',
},
isSinglePageApplication: {
description:
'If the application is created by Single Page Application, enable redirect to index.html.',
},
chromePath: {
description: 'The path to the Chrome or Chromium executable to use for collection.',
default: process.env.CHROME_PATH || ChromeLauncher.getInstallations()[0],
},
puppeteerScript: {
description:
'The path to a script that manipulates the browser with puppeteer before running Lighthouse, used for auth.',
},
puppeteerLaunchOptions: {
description: 'The object of puppeteer launch options',
},
startServerCommand: {
description: 'The command to run to start the server.',
},
startServerReadyPattern: {
description: 'String pattern to listen for started server.',
type: 'string',
default: 'listen|ready',
},