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

[fix] Get correct displayName from memoized components #2137

Merged
merged 2 commits into from
May 25, 2019
Merged

[fix] Get correct displayName from memoized components #2137

merged 2 commits into from
May 25, 2019

Conversation

gustavovnicius
Copy link
Contributor

@gustavovnicius gustavovnicius commented May 24, 2019

Fixes #2136

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - I’ve already got a fix prepared for this, tho.

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will bring in your test case tho, thanks :-)

…emo` components.

Expected results verified with the React Dev Tools.
@ljharb ljharb merged commit acc6528 into enzymejs:master May 25, 2019
ljharb added a commit that referenced this pull request May 26, 2019
 - [fix] ensure the correct displayName for `memo` components (#2137)
 - [fix] `mount`: wrap simulate() in ReactTestUtils.act() (#2135)
 - [fix] properly handle `memo`’s `areEquals` arg (#2128)
 - [dev deps] update `eslint-plugin-import`
 - [deps] update `semver`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

enzyme-adapter-react-16 render wrong displayName for decorated react-redux component
2 participants