Storybook addon
storybook-addon-vis performs self-contained visual testing for Storybook. It runs your stories in Vitest browser mode, compares an image of each with a stored baseline, and keeps the images in your repository.
If you do not use Storybook, see the Vitest plugin. Choosing a package compares the two.
Where to go next
Section titled “Where to go next”- Get started: install and take your first snapshot.
- Features: every capability, each linked to its guide.
- Guides: automatic and manual snapshots, themes, viewports, thresholds, the Vis panel, CI.
- Configuration: Vitest, Storybook, TypeScript and
.gitignore. - Examples: published Storybooks of the test cases.
- How snapshots work and updating baselines: the concepts behind the addon.
- Troubleshooting and the API reference.