Giter Site home page Giter Site logo

Error while running tests about relay HOT 11 CLOSED

facebook avatar facebook commented on May 7, 2024
Error while running tests

from relay.

Comments (11)

fson avatar fson commented on May 7, 2024

@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.

from relay.

knowbody avatar knowbody commented on May 7, 2024

oh, make sense now, thanks @fson!

from relay.

knowbody avatar knowbody commented on May 7, 2024

we could mention that in the README I guess.

from relay.

fson avatar fson commented on May 7, 2024

@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.

from relay.

knowbody avatar knowbody commented on May 7, 2024

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

from relay.

fson avatar fson commented on May 7, 2024

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

from relay.

knowbody avatar knowbody commented on May 7, 2024

with 0.10.40 fails. I get:

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

from relay.

yungsters avatar yungsters commented on May 7, 2024

@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).

from relay.

knowbody avatar knowbody commented on May 7, 2024

@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?

from relay.

josephsavona avatar josephsavona commented on May 7, 2024

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.

from relay.

cpojer avatar cpojer commented on May 7, 2024

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

from relay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.