-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
vitest v3 throws with jest-image-snapshot. #7322
Comments
Hmm, interesting. I suppose the reason why they have |
I was running into the same, glad to see I am not the only one... Putting a breakpoint before the line where this breaks revealed that |
Just to share, if you consider migrating to use browser mode, I have |
Vitest's
> ({ some: 'object' }) + 1
'[object Object]1' |
I attempted a bit of hack on Vitest side which might make it compatible with jest-image-snapshot. I'm not sure we go with this though, I'm interested to know if this works for any of you. Please feel free to try out pkg.pr.new from #7390 (comment) |
Sorry, but how i can test with pkg.pr.new? |
@wallynm You only need to replace related packages you have in projects. Thus normally having |
Your hack worked for my needs, all of my tests passed after I installed |
Pinning Vitest 2 for now until vitest-dev/vitest#7322 is solved
Describe the bug
Hello, it seem that recent changes in snapshot state #6817 broke some custom and third party snapshot matchers. For example using jest-image-snapshot with v3 results to error be thrown from vitest internals.
Opening issue because I was asked to do so. #6817 (comment)
Reproduction
cant upload images to stackbliz 😢
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: