Created
March 6, 2020 14:32
-
-
Save sgromkov/bd238c9e31161a865e53ca9b64d780a5 to your computer and use it in GitHub Desktop.
Mocked axios with Jest
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
export default { | |
get: jest.fn(() => { | |
return Promise.resolve({ data: {} }); | |
}), | |
post: jest.fn(() => { | |
return Promise.resolve({ data: {} }); | |
}), | |
defaults: {} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment