-
Notifications
You must be signed in to change notification settings - Fork 64
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
TypeError: Function.prototype.name sham getter called on non-function #114
Comments
@Ridermansb might want to mention that you also reported this bug to enzyme proper enzymejs/enzyme#1889 |
Not sure if this got resolved - as I can't see the rest of your test it's hard to tell if you have the same issue as me. I managed to resolve the issue by changing my .find('a#someid') to actually reference the type - so .findWhere(field => field.type() === FieldText && field.prop('id') === 'displayName') This may help someone with a similar issue! |
I'm running into a related problem. I'm not getting the "sham getter" issue, but I am getting different snapshot results when I use --coverage vs. not use it. I just upgrades to styled-components 5 and that started the problem. |
That seems like an issue with whatever |
Thank you @ljharb, that comment helped! It seems that displayName stability was never guaranteed (for snapshots) and we've been lucky thus far. styled-components/babel-plugin-styled-components#151 |
When run with
--coverage
i get this error..`
If I not run with coverage, everything works fine
Question posted on Stackoverflow
The text was updated successfully, but these errors were encountered: