You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a test, I want to be able to programmatically wipe any snapshots Vitest might have stored prior, for the current test.
The reason is that I have my own "wrapper" around tests that may occasionally trigger a retry programmatically, which will result in duplicate results in the snapshot files (if the test asserts a snapshot succesfully in each retry).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In a test, I want to be able to programmatically wipe any snapshots Vitest might have stored prior, for the current test.
The reason is that I have my own "wrapper" around tests that may occasionally trigger a retry programmatically, which will result in duplicate results in the snapshot files (if the test asserts a snapshot succesfully in each retry).
Beta Was this translation helpful? Give feedback.
All reactions