DEV Community

Discussion on: Testing React Hook State Changes

Collapse
 
jigshgithub profile image
jigshGitHub

How to get actual value being set with setState in test case...in this case value of 'count' ...let me put this way...when 'Count Up' test case being run, it updates state of count by 1, if I update wrapper, should I get

1

...and how can we test