Jest: Testing React state change in useEffect

前端 未结 0 1228
被撕碎了的回忆
被撕碎了的回忆 2021-01-06 14:14

I am new at Jest and Enzyme, and am struggling to write a unit test to check if my component renders correctly when a certain state value exists.

Below is my code:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题