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]: Custom test suite grouping HOT 3
- [Bug]: Node 20.10.0 V8 coverage incorrect when file tested by multiple test files
- [Bug]: v8 coverage lowers when more tests are executed HOT 3
- [Feature]: CLI to automate migration from v28 to v29 HOT 2
- [Bug]: toMatchObject hangs with certain inputs HOT 3
- jest-resolve throw error HOT 2
- [Bug]: Fails to report coverage of test files HOT 3
- [Bug]: Regression in detectOpenHandles for DNSCHANNEL HOT 3
- [Bug]: jestjs.io main page crashes HOT 3
- [Bug]: jest transform ignore patterns not working for msal react library HOT 1
- [Bug]: `findRepos` works slowly with a large number of `projects` HOT 6
- [Bug]: Named mocks defined at the module level do not show descriptive name in the reporter for failed assertions HOT 3
- [Feature]: Support load .env though CLI tool like in node v20+
- [Bug]: @jest/globals pollutes global namespace with node types HOT 3
- [Bug]: `structuredClone` is not defined in `jest-environment-jsdom` HOT 1
- [Feature]: Show progress of tests as they run HOT 12
- [Feature]: Add meta data to tests to be able to determine test case coverage HOT 1
- [Bug]: Error converting circular structure to JSON HOT 6
- [Docs]: duplicate explanation HOT 1
- [Bug]: expect().toEqual does not compare unique node properties
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.