We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mounting a tree using React.unstable_Profiler throws Enzyme Internal Error: unknown node with tag 12
React.unstable_Profiler
Enzyme Internal Error: unknown node with tag 12
https://codesandbox.io/s/jxjoj2p0v
mount(<React.unstable_Profiler id="test" onRender={id => console.log(id)} />); does not throw
mount(<React.unstable_Profiler id="test" onRender={id => console.log(id)} />);
As far as I can tell enzyme is simply not supporting this (yet). Happy to start working on a PR that adds this to the mount API.
I'm personally not that interested in shallow rendering. I guess we would need to establish first how the Profiler should work with shallow rendering.
This should also be included in #1553.
The text was updated successfully, but these errors were encountered:
You’re correct, it doesn’t yet. A PR would be great!
Sorry, something went wrong.
(and yes, to be added to mount we’d need to decide what the behavior is for shallow, and ideally it’d be identical)
I'd say this is closed by #2055.
No branches or pull requests
Current behavior
mounting a tree using
React.unstable_Profiler
throwsEnzyme Internal Error: unknown node with tag 12
https://codesandbox.io/s/jxjoj2p0v
Expected behavior
mount(<React.unstable_Profiler id="test" onRender={id => console.log(id)} />);
does not throwYour environment
API
Version
Adapter
As far as I can tell enzyme is simply not supporting this (yet). Happy to start working on a PR that adds this to the mount API.
I'm personally not that interested in shallow rendering. I guess we would need to establish first how the Profiler should work with shallow rendering.
This should also be included in #1553.
The text was updated successfully, but these errors were encountered: