Unit Test for UseEffect hook

后端 未结 0 1226
难免孤独
难免孤独 2020-12-28 23:56

how do I write the unit test to test the following code. how can i execute the useEffect hook and catch it in side unit test.

useEffect(() => {
    if (exi         


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