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

Test react native app V0.45.1 (or above) with JEST #15981

Closed
b-asaf opened this issue Sep 18, 2017 · 6 comments
Closed

Test react native app V0.45.1 (or above) with JEST #15981

b-asaf opened this issue Sep 18, 2017 · 6 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@b-asaf
Copy link

b-asaf commented Sep 18, 2017

I am trying to test my react native application with JEST.
I am using:

dependencies:
  "react": "16.0.0-alpha.12",
  "react-native": "0.45.1",

devDependencies:
  "enzyme": "^2.9.1",
  "react-dom": "^15.6.1",
  "jest": "20.0.4",
  "react-test-renderer": "16.0.0-alpha.12",
  "save": ^2.3.1"

I wanted to add tests to my react native application without downgrade my react native version.
Actually, I am thinking about upgrading it before moving to production.

I keep getting the error:
react-dom is an implicit dependency in order to support react@0.13-14. Please add the appropriate version to your devDependencies. See https://github.com/airbnb/enzyme#installation

and most of the way to solve the problem was to downgrade my RN version, is there any other way?

I am using yarn (v1.0.2)
The application is aimed to Android and iOS phones.
I develop on Window and Mac.

@sattaman
Copy link
Contributor

react-dom version should match react

@radko93
Copy link
Contributor

radko93 commented Sep 18, 2017

And react version should match the one that comes with a RN version.

@b-asaf
Copy link
Author

b-asaf commented Sep 19, 2017

@sattaman: react-dom latest version is 15.6.1 according to react-dom but I need version 16.X.X.
I don't want to downgrade my RN version.

@radko93: my react version is the one that comes with RN v0.45.1.

@sattaman
Copy link
Contributor

@assafb81 It probably does exist its just prerelease. You could try yarn add react-dom@next and you'll see a beta version

@pull-bot
Copy link

@facebook-github-bot no-template

@facebook-github-bot
Copy link
Contributor

Hey, thanks for reporting this issue! It looks like your description is missing some necessary information, or the list of reproduction steps is not complete. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce the issue being reported. I am going to close this, but feel free to open a new issue with the additional information provided. Thanks! See "What to Expect from Maintainers" to learn more.

@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Oct 10, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Oct 10, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants