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

React Tutorial tests not running #28

Closed
evankline opened this issue May 17, 2014 · 11 comments
Closed

React Tutorial tests not running #28

evankline opened this issue May 17, 2014 · 11 comments

Comments

@evankline
Copy link

I cloned the repo and was unable to get the React test to run. I followed the instructions on the Jest page. Below is the result of running npm test

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

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

@jeffmo
Copy link
Contributor

jeffmo commented May 17, 2014

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)

@evankline
Copy link
Author

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

@jeffmo
Copy link
Contributor

jeffmo commented May 17, 2014

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)

@jeffmo
Copy link
Contributor

jeffmo commented May 17, 2014

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.

@bryanlarsen
Copy link

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

@srph
Copy link
Contributor

srph commented Feb 14, 2015

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

@tameraydin
Copy link

+1 (using node 0.12)

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

@srph
Copy link
Contributor

srph commented Feb 15, 2015

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

@tameraydin
Copy link

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

@srph
Copy link
Contributor

srph commented Feb 15, 2015

Anyone mind opening a separate issue?

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants