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 Jest CLI error causing Jest tests to not run (using Jest CLI v 0.… #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sevagsim
Copy link

@sevagsim sevagsim commented Nov 5, 2015

There is an error when running npm test using Jest CLI v.0.7.1

It is due to how package.json is being used in the dependency read-package-tree. This should be excluded from the test suite.

Before: Test suite does not run
After: Test suite runs and successfully passes

@benoitvallon
Copy link
Owner

I am using jest v0.7.1 on my machine as well and I have no problem. If you look at the CI on travis https://travis-ci.org/benoitvallon/react-native-nw-react-calculator the tests run correctly as well.

Depending of which version of npm you are using you may have had issues when npm install, I noticed that sometimes with the first versions of npm v3. I had to npm install 2 or 3 times.

@sevagsim
Copy link
Author

sevagsim commented Nov 6, 2015

Note that I used the following instructions, because I have NPM v2.14.7, and no matter how many times I go do npm install i get the same error.

screen shot 2015-11-06 at 10 05 23 am

@benoitvallon
Copy link
Owner

Oh sorry, I realized that I made some modifications to the readme that made it confusing.
If you are using npm v2 npm installshould work fine.

The special instructions are for people using one of the first version of npm v3.

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

2 participants