Skip to content

Vitest plugin

vitest-plugin-vis performs self-contained visual testing for tests that run in Vitest Browser Mode.

It takes screenshots through your browser provider, compares them with baseline images in your repository, and writes the differences to disk. There is no cloud service. The snapshots are files that you commit.

If your components live in Storybook, use storybook-addon-vis instead. It runs this plugin for your stories. Choosing a package compares the two.