-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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-test-renderer's createNodeMock does not work as expected #17987
Comments
I'm not very familiar with this - is it supposed to work? Do you have a reference if so? |
@hramos I learned about |
This worked for me:
|
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Steps to Reproduce
react-native init NodeMockTest
cd NodeMockTest
Open
__tests__/App.js
and replace with this code:Run
npm test
Expected Behavior
I expect the test to not throw an error
Actual Behavior
Test fails with:
Screenshot:
Reproducible Demo
Please see steps above for code.
I was not able to reproduce this issue with Expo. Please see https://snack.expo.io/SkpvqjfwM.
The text was updated successfully, but these errors were encountered: