Created
December 21, 2017 15:45
-
-
Save vojty/284600631dcdb6e57de3f54a22e911e2 to your computer and use it in GitHub Desktop.
Enzyme 3.2 + React-portal
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
const portalComponent = wrapper.find(Portal).at(0); | |
const portalInstance = portalComponent.instance(); | |
const portalWrapper = new ReactWrapper(portalInstance.props.children); | |
portalWrapper.find(...) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment