Skip to content

visual-testing

Capture and compare image snapshots automatically and manually, in Storybook and in Vitest Browser Mode.

Package What it is for npm Docs
storybook-addon-vis Capturing and comparing image snapshots of your stories, automatically and manually, from Storybook Vitest addon tests. npm Get started, Features
vitest-plugin-vis Capturing and comparing image snapshots in tests that run in Vitest Browser Mode, without Storybook. npm Get started, Features

Use storybook-addon-vis for Storybook stories and vitest-plugin-vis for Vitest Browser Mode tests without Storybook. See Choosing a package.

Start with Visual testing. It explains the ideas both packages share.

See how these packages compare with other tools in Compare.

The repository’s Storybooks are published with this site:

They only render the stories. Snapshots are taken while Vitest runs them. See Examples.