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