Hi, thanks for sharing the tutorial! However, things might still not work for me, and I am not sure how did useStateSpy connected with the Enzyme.shallow(<TestComponent />); in your test case...
In addition, my wrapper by shallow turns out to be null, but when I use mount it can show me correct component.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, thanks for sharing the tutorial! However, things might still not work for me, and I am not sure how did
useStateSpy
connected with theEnzyme.shallow(<TestComponent />);
in your test case...In addition, my
wrapper
byshallow
turns out to benull
, but when I usemount
it can show me correct component.