GithubHelp home page GithubHelp logo

Comments (11)

jeffmo avatar jeffmo commented on April 19, 2024

Hmm, I just ran it and it seems to work for me (fresh clone of the repo, fresh npm install).

Random guess: Are you by chance on a windows machine?
(we haven't tested much running on windows -- but there are a couple people looking in to fixing that up)

from jest.

evankline avatar evankline commented on April 19, 2024

Hey Jeff, I'm actually on a mac. I git cloned the repo and I also wrote each file by hand and got the same result. When I run npm test in /tutorial and /get_started folders each individual test passes. Is there additional setup im missing for the React example? Was I supposed to create an index.html and add the JSX script perhaps?

When I change the jsx to js using the React.DOM syntax I receive a different error:

@ test /Users/evankline/Documents/reactprac/jest/examples/react
node ../../bin/jest.js

Using Jest CLI v0.1.8
Found 2 matching tests...

dyld: lazy symbol binding failed: Symbol not     found:__ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5V  alueEEEENS_6HandleIS4_EENSA_INS_9SignatureEEEi
Referenced from:     /Users/evankline/Documents/reactprac/jest/node_modules/jsdom/node_modules/contextify/build/Release/contextify.node
Expected in: dynamic lookup

 dyld: Symbol not found:         __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_6HandleIS4_EENSA_INS_9SignatureEEEi
   Referenced from:         /Users/evankline/Documents/reactprac/jest/node_modules/jsdom/node_modules/contextify/build/Release/contextify.node
Expected in: dynamic lookup

 dyld: lazy symbol binding failed: Symbol not found:          __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_6HandleIS4_EENSA_INS_9SignatureEEEi
 Referenced from:    /Users/evankline/Documents/reactprac/jest/node_modules/jsdom/node_modules/contextify/build/Release/contextify.node

from jest.

jeffmo avatar jeffmo commented on April 19, 2024

Whoa I haven't seen that error before...that looks like a node/v8 error message...
Can you maybe make a gist with each of the files you have set up?

It sounds like you typed up the examples from the site yourself -- do you have the same issues if you run npm install + npm test in the examples/react directory?

(Also -- if you want to hop in #jestjs on freenode, it might be a little easier to chat and debug there than here)

from jest.

jeffmo avatar jeffmo commented on April 19, 2024

Ok, for posterity after debugging together in IRC:

It looks like Evan was running node 0.11 (which is an unstable version of node).
When he downgraded to 0.10 (the latest stable release), this seemed to fix things.

from jest.

bryanlarsen avatar bryanlarsen commented on April 19, 2024

This will be a show-stopper for me. Any plans to support node 0.11 / 0.12?

from jest.

srph avatar srph commented on April 19, 2024

Any update regarding the support for node 0.11 / 0.12?

TypeError: Cannot read property 'pipe' of undefined
    at module.exports (/home/travis/.nvm/versions/node/v0.12.0/lib/node_modules/jest-cli/node_modules/harmonize/harmonize.js:31:20)
    at Object.<anonymous> (/home/travis/.nvm/versions/node/v0.12.0/lib/node_modules/jest-cli/bin/jest.js:39:1)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3

from jest.

tameraydin avatar tameraydin commented on April 19, 2024

+1 (using node 0.12)

It will work when I comment this line in jest:
harmonize();
and run
node --harmony ./node_modules/.bin/jest

from jest.

srph avatar srph commented on April 19, 2024

I can't do that on Travis CI, can I?

from jest.

tameraydin avatar tameraydin commented on April 19, 2024

I'm not sure. Probably not, since you install default packages via npm install.

from jest.

srph avatar srph commented on April 19, 2024

Anyone mind opening a separate issue?

from jest.

github-actions avatar github-actions commented on April 19, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

from jest.

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.