Node 16.20.0 is a pre-requisite on which this code works well. On other node versions, it might fail.
- You can use this for running LightHouse Performance testing automation
- Inside ./resources/data.json, provide URL and page name that you want to give.
- open your terminal at root directory and execute -
- npm i -g lighthouse
- npm install
- npm run start
- wait till execution is complete.
- Now Go to ./Reports/{latest date and time}
- Refer you report corresponding to each URL
Code updated from https://github.com/akagupta9/lighthouse-wrapper