Last active
July 12, 2018 09:47
-
-
Save dupski/4ac9347e0e15c99f918d0c99ed209f96 to your computer and use it in GitHub Desktop.
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 TestRenderer from 'react-test-renderer'; | |
let renderer: TestRenderer.ReactTestRenderer; | |
let instance: TestRenderer.ReactTestInstance; | |
beforeAll(() => { | |
renderer = TestRenderer.create( | |
<div> | |
<h2>My Super-sweet Component</h2> | |
<SomeComponent /> | |
</div> | |
); | |
instance = renderer.root; | |
}); | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment