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

React Native test documentation says import react native is required #614

Closed
Billy- opened this issue Feb 13, 2018 · 1 comment
Closed

Comments

@Billy-
Copy link

Billy- commented Feb 13, 2018

This documentation shows import 'react-native' in all examples and at the end remarks:

Currently it is required to require react-native before loading the test renderer

I am not importing react-native in my tests and they seem to work fine. Is this a case of outdated documentation, or am I missing something?

Cheers 🍻

@gaearon
Copy link
Member

gaearon commented Feb 14, 2018

I think it’s outdated and not necessary anymore. Feel free to send a PR to Jest docs to remove this

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

No branches or pull requests

2 participants