Runs visual regression tests inside a docker container. See blink-diff for more info and examples.
Future that here
This should be run in a docker container. The consistent environment will ensure rendered images are uniform across different machines.
# To Run for development
sh scripts/run-dev.sh
# To Run for production
# First Run
sh scripts/build.sh
# To Run
sh scripts/run.sh
Set PATH_CHROMIUM
to the location of chromium browser
If serving from localhost and using webpack dev server, you'll need to add to your allowedHosts settings;
{
...
devServer: {
...
allowedHosts: ['host.docker.internal']
}
}