Created
April 20, 2020 15:03
-
-
Save dagda1/40430e9613bde16b9c38aed9b76cbc74 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