Home

Awesome

lighthouse-mocha-example

Example using lighthouse and chrome-launcher for running lighthouse tests with mocha.

Note: This example also uses cli-table to show data in a table format so it is easy to read the data while testing. It is not necessary that you use it since lighthouse supports HTML and JSON data output. For details on it, please read this documentation.

This works with CI environments too!

Also, you might want to run this on a production build since some metrics are not available during development.