-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
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
Is it possible to show Function name instead of {[Function]} ? #4235
Comments
We disabled this in Jest 16 for various reasons: https://facebook.github.io/jest/blog/2016/10/03/jest-16.html#snapshot-updates |
Is it possible to somehow enable that in certain cases? |
No, it's not configurable now. You can always fork |
Thanks, i'll take a look! |
Not at this point, if you are using code coverage then the name won't be able to be inferred properly. |
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. |
On React, I have a
<Button>
with a prop that passs another component:And on the snapshot it shows this:
If I change the
Icon
prop value to another component, the snapshots doesn't change, staying{[Function]}
.Is it possible to know the function name on the snapshot? Something like:
I have jest 18.1.0 installed.
Thanks
The text was updated successfully, but these errors were encountered: