How to tell vitest a snapshot fails #6828
-
I'm working on https://github.com/repobuddy/storybook-addon-vis. I can get the import { server } from '@vitest/browser/context'
server.config.snapshotOptions.updateSnapshot now my problem is how to tell currently I am returning: return {
pass: false,
message: () => '...'
} |
Beta Was this translation helpful? Give feedback.
Answered by
sheremet-va
Oct 31, 2024
Replies: 1 comment 1 reply
-
The You can also probably tinker with the snapshot state via |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
unional
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
press u to update snapshot
string is displayed if there is at least one test with an error message that maches a regexp/Snapshot .* mismatched/
You can also probably tinker with the snapshot state via
expect.getState().stapshotState
(can't help you there)