react-shallow-renderer icon indicating copy to clipboard operation
react-shallow-renderer copied to clipboard

Arrow Function names no longer populated after upgrade to babel 7

Open IanVS opened this issue 5 years ago • 1 comments

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.

IanVS avatar Aug 06 '20 20:08 IanVS

A minimal reproduction would certainly be helpful.

NMinhNguyen avatar Aug 06 '20 20:08 NMinhNguyen