I was wondering how to test a state change of functional components with the useState hook with Enzyme. Usually the test would be something along the lines of expect(wrapper.state()).toEqual(expectedState) but I get the error:
ReactWrapper::state() can only be called on class components
I know that Hooks are still in the alpha stage and things like shallow still don't work but I was wondering is there a way to this yet?