Menu and MenuItem thorw "Invariant Violation: getNodeFromInstance: Invalid argument" in snapshot test with jest #6971
Labels
component: menu
This is the name of the generic UI component, not the React module!
Problem description
I work with typescript, react and material-ui. I'm trying to do a snapshot test with jest. But material-ui's MenuItem throw Invariant Violation: getNodeFromInstance: Invalid argument. exception
Link to minimal working code that reproduces the issue
Here is the component I'm trying to test:
Here is the test
and the logs errors
Versions
The text was updated successfully, but these errors were encountered: