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 testing React components with Jest, I receive Warning: ReactComponentTreeDevtool: Missing React element for debugID 1 when building stack is shown when calling TestUtils.renderIntoDocument. I filed an issue on React, and @gaearon identified that this was caused by Jest executing React modules twice.
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.
When testing React components with Jest, I receive
Warning: ReactComponentTreeDevtool: Missing React element for debugID 1 when building stack is shown
when calling TestUtils.renderIntoDocument. I filed an issue on React, and @gaearon identified that this was caused by Jest executing React modules twice.Not sure if this is expected behaviour?
See the issue on React for more information and the repo I put together to reproduce the issue: https://github.com/angusfretwell/reproduce-debugid-warning (
npm install && npm test
).The text was updated successfully, but these errors were encountered: