enzymejs / enzymejs/react-shallow-renderer

Arrow Function names no longer populated after upgrade to babel 7

Open
#76 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
37
Forks
14
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.