Created
October 13, 2021 10:11
-
-
Save MiguelSavignano/ee08511c03de19a412150ac2f1b438fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jest.mock('axios'); | |
axios.create.mockReturnThis(); | |
axios.get.mockResolvedValueOnce(Promise.resolve({ | |
data: myMockData | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment