Comments (11)
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.
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.
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.
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.
This will be a show-stopper for me. Any plans to support node 0.11 / 0.12?
from jest.
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.
+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.
I can't do that on Travis CI, can I?
from jest.
I'm not sure. Probably not, since you install default packages via npm install.
from jest.
Anyone mind opening a separate issue?
from jest.
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)
- [Feature]: Ability to dispatch spec files to jest non-interactively
- Failed build: Node Nightly CI HOT 16
- [Feature]: Report duplicate test names HOT 2
- [Feature]: New hook `beforeEach.successive` which is like beforeEach, but only for successive tests in the suite HOT 1
- [Bug]: Unexpected token 'export' when Jest test imports d3-array (3.2.4) HOT 1
- [Bug]: ReferenceError: CSS is not defined HOT 1
- [Feature]: Option to support `Error#cause` in snapshots for Jest29 HOT 4
- [Bug]: Using `projects` option does not "copy the root-level configuration options to each individual child configuration during the test run"
- [Feature]: The ability of `toHaveProperty` to parse dots in property name is so evil. Please remove it. HOT 1
- [Bug]: Error while running watch
- OpenJS Onboarding: Document Core Infrastructure By Filling Out Google Form HOT 1
- [Feature]: Support `import.meta.resolve` HOT 3
- [Feature]: Global / system wide config ?
- OpenJS Onboarding: Publish Security Policy
- OpenJS Onboarding: Create & Publish Project Charter
- [Bug]: `advanceTimersByTimeAsync` has inconsistent behavior regarding `setTimeout(x, 0)` HOT 2
- Why do my unit tests slow down after 26 upgrading to the latest version of jest HOT 1
- [Bug]: Reporter interface has onTestCaseStart, but that hook is never called
- [Docs]: Difference between runner and testRunner? HOT 3
- [Bug]: Jest with ECMAScript modules importing a package that is itself an ECMAscript module fails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jest.