How to do Unit Test with Jest and Enzyme against a React component where there are API calls in its useEffect function

后端 未结 0 337
谎友^
谎友^ 2021-01-01 15:15

New to Jest and Enzyme. I\'m not sure how to plan unit test for this case:

I have a component named "Monitor.jsx". It\'s a functional component. And it has

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