Skip to content

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

Description

@IanVS

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions