-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snapshot assertion APIs failed to work with not
#5287
Comments
not
.not
As I said in #3089 (comment) I don't think we can support this. Snapshots are generated based on the input. If we use |
Thanks for the reply, now I understand it. Maybe we can throw an error if users use these APIs with |
Sounds good to me 👍🏻 |
Closed by #5294 |
Describe the bug
When I was trying to address #3089, I found that not only
toThrowErrorMatchingInlineSnapshot()
but also other snapshot assertion APIs liketoMatchInlineSnapshot()
do not seem to work withnot
.Not sure if Vitest should support all of them, but at least a note in the documentation would be better.
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-bqujvz?file=test%2Fbasic.test.ts
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: