Last active
April 23, 2017 16:50
-
-
Save rmp135/4374418e96b399eb99a29cc11a2ec39b to your computer and use it in GitHub Desktop.
Setting up rewire
This file contains 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 * as rewire from 'rewire' | |
import * as ToMock from './ToMock' | |
let RewireToMock = rewire('./ToMock') | |
const MockToMock: typeof ToMock & typeof RewireToMock = <any> RewireToMock | |
MockToMock.__set__({ | |
dependency: {} | |
}) | |
MockToMock.__set__({ | |
dependency_1: { | |
default: {} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment