You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 3, 2019. It is now read-only.
$ npx styleguidist-visual test --url "https://react-styleguidist.js.org/examples/basic/"
You can also test against your local style guide.
The following command will first build the style guide and then run the visual test.
$ npx styleguidist build && styleguidist-visual test --url \"file://$(pwd)/styleguide/index.html\"
The first time you run the tool, it will create reference screenshots for all examples in your styleguide, and store them in the styleguide-visual folder. If you run the same command again, it will take new screenshots, compare them to the reference ones, and show you the differences between them.
If the new screenshots look good, you can promote them to be the new reference files by running:
$ npx styleguidist-visual approve
Options
You can see all possible options by appending the --help argument to any command:
Copyright (c) 2018 Daniel Perez Alvarez (unindented.org). This is free software, and may be redistributed under the terms specified in the LICENSE file.
About
Automated visual testing for React Styleguidist, using Puppeteer and pixelmatch.