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