I have component in React which I\'m trying to test with Jest, unfortunately test do not pass.
The component code:
import React, {Component} from \'react
Something like this worked for me:
import {createMount} from '@material-ui/core/test-utils'; const WrappedComponent = () => const render = createMount(); const wrapper = render(); const state = wrapper.find(MyComponent).instance().wrappedInstance.state