Skip to content
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

Arrow Function names no longer populated after upgrade to babel 7 #76

Open
IanVS opened this issue Aug 6, 2020 · 1 comment
Open

Arrow Function names no longer populated after upgrade to babel 7 #76

IanVS opened this issue Aug 6, 2020 · 1 comment

Comments

@IanVS
Copy link

IanVS commented Aug 6, 2020

I'm not positive, but I think this could be an error in this repo. I'm upgrading from babel 6 to 7, and found that my tests using react-test-renderer/shallow are failing for functional component children which are using arrow functions. I'm no longer able to access result.type.name on the render result, for instance. It comes back as '' instead of the name of the arrow function. I still see the display names correctly in the react dev tools, just not these tests.

Let me know if any additional info would be useful to debug this.

@NMinhNguyen
Copy link
Collaborator

A minimal reproduction would certainly be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants