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