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
// Jest Snapshot v1, https://goo.gl/fbAQLPexports[`<Foo /> renders snapshot 1`]=`<a href="https://github.com/facebook/jest"/>`;
The target={undefined} has been removed, causing the test to fail.
I could not find anything related to that in the changelog. Is this an intended change
The text was updated successfully, but these errors were encountered:
robin-drexler
changed the title
Unintended breaking change in snapshot testing in jest 23?
Unintended breaking change in snapshot tests in jest 23?
May 25, 2018
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
💥 Regression Report
I've upgraded to jest 23 and found the following behavior change when it comes to undefined props in snapshots.
Last working version
v22.4.4
Worked up to version:
v22.4.4
Stopped working in version:
v23
To Reproduce
Consider the following test:
In jest 22 the resulting snapshot was:
Running the same test in jest 23 produces:
The
target={undefined}
has been removed, causing the test to fail.I could not find anything related to that in the changelog. Is this an intended change
Expected behavior
Snapshots should look the same as in in jest 22
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: