get state value in jest code example Example: enzyme check state const component = wrapper.instance().state;