I am learning testing with jest and enzyme. I want to test an API with moxios but facing a lot of challenges. I have an API call as below:
useEffect(() =>