DEV Community

Discussion on: The only 3 steps you need to mock an API call in Jest

 
chiubaca profile image
Alex Chiu

Thank you so much! Was finally able to get the test passing! The trick of using (axios.get as jest.Mock) was the key to letting me debug this thoroughly.