how to test state with mount jest code example Example: enzyme check state const component = wrapper.instance().state;