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 forwardRef handling in snapshot tests #6099

Closed
wants to merge 1 commit into from

Conversation

camspiers
Copy link

Summary

Previous PR #6069 didn't actually fix the issue, as it wasn't correctly comparing the forwardRefSymbol with element.type.$$typeof

Test plan

Run jest -u on a known snapshot test that depends on a component that uses forwardRef, ensure that the component name of ForwardRef(MyComponent) is used.

Previous PR jestjs#6069 didn't actually fix the issue, as it wasn't correctly comparing the forwardRefSymbol with `element.type.$$typeof`
@SimenB
Copy link
Member

SimenB commented Apr 30, 2018

Could we add a test? Maybe importing the ones from #6093?

/cc @jkimbo

This is also failing lint

@jkimbo
Copy link
Contributor

jkimbo commented Apr 30, 2018

I'm confused @SimenB - which PR are you planning on accepting? #6093 fixes rendering of forwardRef

@camspiers
Copy link
Author

Let's work to get @jkimbo's PR accepted, as it handles context provider and consumer too.

@camspiers camspiers closed this Apr 30, 2018
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants