We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi there, I recently upgraded a project:
From
To
Now lots of tests are failing due to snapshots not matching:
+ expected - actual - onBlur={[Function]} - onChange={[Function]} + onBlur={[Function bound onBlurHandler]} + onChange={[Function bound onChangeHandler]}
Is this expected behaviour? I guess tests are more brittle if the handler names are there. Thanks :)
The text was updated successfully, but these errors were encountered:
I have the same issue with shallow render:
Sorry, something went wrong.
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.
No branches or pull requests
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 :)
The text was updated successfully, but these errors were encountered: