I want to write unit test for my react component.The logic what i want to test is inside UseEffect.Please find the code below

后端 未结 0 433
既然无缘
既然无缘 2020-12-17 14:44

I make an axios post request inside my useEffect and once value is received i updte my link using setState.Therefore,i want to write unit test for this business logic.here i

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