Created
April 15, 2019 13:54
-
-
Save Haroenv/1cb94a3154096b05a6be2bd77ca5e781 to your computer and use it in GitHub Desktop.
mocks & TS
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
import connectReal from '../somewhere'; | |
jest.mock( | |
'../../internal/used-in-somewhere', | |
() => (connector: ConnectorDescription) => connector | |
); | |
// would like this to be ConnectorDescription, since the mock made it that | |
const connect: any = connectReal; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment