Local debugging
Run lost-pixel locally to debug visual testing issues easier
If you are setting up the Lost Pixel platform for the project for the first time, there are high chances that you will need to make sure everything looks good for your baselines and tweak a thing or two. Waiting for CI to finish to look at how your changes have affected the visual testing is tedious. We provide a utility via `lost-pixel` CLI to help streamline it.
For this config, just run npx lost-pixel local
This will ensure that the platform mode
is overridden by oss mode
and you can see your screenshots done locally.
Under the hood local
flag overrides lostPixelProjectId
with genereateOnly:true
and for pageShots
replaces anything in your host part of baseUrl
with localhost. The above example becomes baseUrl: 'http://localhost:3000'
Last updated