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
The text was updated successfully, but these errors were encountered:
sparten11740
changed the title
jest extended snapshot matchers don't work with snapshot hint
jest extended snapshot matchers don't work with snapshot name
Feb 17, 2025
Jest allows passing a snapshot name to snapshot matchers such as
toMatchSnapshot
and co, e.g.The full test name in that case is suffixed with
: ${hint}
.exodus-test always assumes the passed argument to be a property matcher and disregards the overloaded signature
test/src/jest.snapshot.js
Lines 113 to 120 in eec3fa5
So before even attempting to extract the snapshot from the snapshot file, exodus-test throws in this line because it passes a string to
toMatchObject
for reference, these are the supported signatures in jest
The text was updated successfully, but these errors were encountered: