Skip to content

How to tell vitest a snapshot fails #6828

Answered by sheremet-va
unional asked this question in Q&A
Discussion options

You must be logged in to vote

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)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@unional
Comment options

Answer selected by unional
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants