New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-dnd: Using Proxyquire to stub sub-components in unit tests results in test failure. #76
Comments
Nope. If you can provide more info I can try to look into it. But I don't use React so I won't be able to help much unless you can offer some direction. |
Didn't mean to close this. Happy to discuss but we do need more context (and not a link to a lengthy React-specific discussion). |
Hey Ben, As far as context, the linked repo demonstrates the issue. Just run npm install, npm test. A can say with certainty that proxyquire works fine for stubbing out react sub-components and even works for stubbing react-stores with react-DND context wrappers, just not with react DOM components. |
Got it. If I can help explain how proxyquire accomplishes what it does, feel free to ask for clarification. |
Issue resolved using: |
Anyone run into this?
react-dnd/react-dnd#268
https://github.com/cmelion/react-hot-boilerplate/tree/Invariant-Violation-DND
The text was updated successfully, but these errors were encountered: