You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a snapshot of a shallow rendered component is created, if the component renders some other component created with React.memo then it shows up as <UNDEFINED>.
To Reproduce
Steps to reproduce the behavior:
create a component using React.memo.
render that component inside some other component.
then write a test for that component using the shallow renderer of react and create a snapshot out of it.
Expected behavior
I would expect the component name in the snapshot to be something like <memo(ComponentName)>.
Link to repl or repo (highly encouraged)
If my description is not enough or this problem is unknown I can try to do this but I rather not do it now because of time constraints. Let me know if this is really necessary.
This issue 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.
🐛 Bug Report
When a snapshot of a shallow rendered component is created, if the component renders some other component created with
React.memo
then it shows up as<UNDEFINED>
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect the component name in the snapshot to be something like
<memo(ComponentName)>
.Link to repl or repo (highly encouraged)
If my description is not enough or this problem is unknown I can try to do this but I rather not do it now because of time constraints. Let me know if this is really necessary.
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: