Enzyme call method
You can use enzyme's instance
function to get an instance of the rendered component, and call methods on it.
const wrapper = shallow(<MyClass {...props} />)
wrapper.instance().doSomething()
You can use enzyme's instance
function to get an instance of the rendered component, and call methods on it.
const wrapper = shallow(<MyClass {...props} />)
wrapper.instance().doSomething()