Skip to content
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

fix: warning in console when running tests #1028

Merged
merged 1 commit into from
Apr 30, 2019

Conversation

brunohkbx
Copy link
Collaborator

Motivation

Jest was throwing the following warning when running tests:

console.warn node_modules/react-native/jest/MockNativeMethods.js:19
      Calling .measureInWindow() in the test renderer environment is not supported. Instead, mock out your components that use findNodeHandle with replacements that don't rely on the native environment.

Test plan

  1. Run yarn test
  2. Check if jest will threw any warning

@callstack-bot
Copy link

Hey @brunohkbx, thank you for your pull request 🤗. The documentation from this branch can be viewed here. Please remember to update Typescript types if you changed API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants