Cypress Lighthouse Plugin
Cypress Lighthouse Plugin is a lighthouse plugin that adds the cy.lighthouse
command to audit websites against the lighthouse performance metrics.
Installation
Use npm or yarn to install cypress-lighthouse
npm install cypress-lighthouse
yarn add cypress-lighthouse
Import the commands at the top of your test file.
import 'cypress-lighthouse';
API
Syntax
Usage
;
Arguments
url (string)
Any valid URL.
Yields
A chaining component with the results of the lighthouse audit. Example:
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.