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

Error while running tests #55

Closed
knowbody opened this issue Aug 13, 2015 · 11 comments
Closed

Error while running tests #55

knowbody opened this issue Aug 13, 2015 · 11 comments

Comments

@knowbody
Copy link
Contributor

I get an error while trying to run tests: npm run tests

this is what I get:
screen shot 2015-08-13 at 11 48 54

@knowbody knowbody changed the title Error while running test Error while running tests Aug 13, 2015
@fson
Copy link
Contributor

fson commented Aug 13, 2015

@knowbody Jest not working on node 0.12.x is a known issue (see jestjs/jest#243). For me the tests started working after installing node 0.10 and running npm rebuild.

From #10 it seems that as soon as Jest 0.5.0 stable version gets released, this project can move to iojs and the old version of node is no longer needed.

@knowbody
Copy link
Contributor Author

oh, make sense now, thanks @fson!

@knowbody
Copy link
Contributor Author

we could mention that in the README I guess.

@fson
Copy link
Contributor

fson commented Aug 13, 2015

@knowbody I think that's a good idea. There's a warning from npm install if you're running an unsupported version, but it's pretty easy to miss.

@knowbody
Copy link
Contributor Author

so which version should I use? v0.10.0?
I'm using n for managing node versions but with 0.10.0 I get errors when I try to do npm install

@fson
Copy link
Contributor

fson commented Aug 13, 2015

@knowbody I installed v0.10.40, which is the latest 0.10.x release and it worked with that.

@knowbody
Copy link
Contributor Author

with 0.10.40 fails. I get:

npm ERR! 404 Not Found
npm ERR! not ok code 0

@yungsters
Copy link
Contributor

@knowbody Try double checking your npm --version. I know whenever I re-install 0.10.x, the npm I get is archaic (v1.x.x).

@knowbody
Copy link
Contributor Author

@yungsters I don't know actually what happened but tried to npm install yesterday again and it worked with node 0.10.40 and npm 1.4.28.

I just think we should add clear instructions as it's important to run those tests locally and I'm guessing most of ppl use 0.12.7.

any ETA on when Jest 0.5.0 stable will be released?

@josephsavona
Copy link
Contributor

Thanks for bringing up this issue - I've documented the configuration required to run tests at https://github.com/facebook/relay/wiki/Frequently-Asked-Questions#error-running-npm-test - please feel to reopen this if there are any additional questions.

@cpojer
Copy link
Contributor

cpojer commented Aug 14, 2015

I published jest 0.5 today and sent a pull request to upgrade relay to iojs and jest, see #74

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

5 participants