Closed alistaircolling closed 5 years ago
I have the same issue with shallow render:
Jest stopped to show function names in snapshots. This comment from another discussion expose why.
There is a work in progress to offer an alternative, but it is not done yet.
In your specific case, I would recommend to test the handlers explicitly (e.g. get a wrapper and simulate blur and change).
Jest issue then not enzyme-to-json.
Hi there, I recently upgraded a project:
From
To
Now lots of tests are failing due to snapshots not matching:
Is this expected behaviour? I guess tests are more brittle if the handler names are there. Thanks :)