DEV Community

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

Collapse
 
antoyne7 profile image
Antoine Braillard

try (axios.get as jest.Mock).mockReturnValue({})