Closed simonsmith closed 1 year ago
Did you resolve this issue? If not, do you want me to work on it?
I just found a workaround, which was to stay on 5.0.0
of this library
:tada: This issue has been resolved in version 5.1.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
I believe a breaking change was introduced in https://github.com/americanexpress/jest-image-snapshot/pull/298
The
diffImageToSnapshot
function now accepts what appears to be an optionalreceivedDir
prop but it has no default value so if I update from5.0.0
to5.1.0
I now get the above error becauseundefined
is passed topath.join
here:For reference, here is how I was calling it before so you can see how
receivedDir
is undefinedI think that change should either be
6.0.0
releaseFor now, staying on
5.0.0
resolves itThanks!