Created
August 21, 2018 21:02
-
-
Save evaldosantos/7e3487de1cc447c49d48de868b9e47ad to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const spy = jest.spyOn(MODULE, 'myFunction').mockImplementation(() => Promise.resolve({payload: 2})); | |
spy.mockRestore() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment