Created
April 20, 2020 15:03
-
-
Save dagda1/e49c0cacacf0ee0a1946eabd43ed970b 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
jest.mock('react-router-dom', () => ({ | |
...jest.requireActual('react-router-dom'), | |
useHistory: () => history, | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment