enzyme check state

JavaScript
const component = wrapper.instance().state;
Source

Also in JavaScript: