Setup overview
vitest-plugin-vis/setup provides the API to set up the plugin on the client side.
It provides the API you need in vitest.setup.ts.
Augmentation
Section titled “Augmentation”When you import vitest-plugin-vis/setup, it augments expect and page to provide methods for visual testing:
expect().toMatchImageSnapshot(): match the image snapshot.page.toMatchImageSnapshot(): match the image snapshot of the page.page.hasImageSnapshot(): check if the image snapshot exists.