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)
- [Bug]: getState from jest-circus gets state from parellel environment HOT 1
- [Docs]: repetitive sentences
- TypeError: Cannot read properties of undefined (reading '__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED') who can help me ? HOT 1
- [Feature]: Add a "toHaveBeenCalledExactlyOnceWith" assertion (name TBD) HOT 1
- [Bug]: isolateModules doesn't work properly with auto mocked modules (reopen #14443)
- jest doesn't work with virtual driver created with subst on Windows HOT 3
- [Bug]: jest isolation conflicts with better-sqlite3 native modules
- [Bug]: Native fetch Arrays Incorrectly Matched
- TypeError: Cannot read properties of undefined (reading 'data') HOT 1
- [Feature]: Update deprecated subdependencies: [email protected], [email protected] in @jest/types HOT 1
- TypeError: Cannot read properties of undefined (reading 'data')
- Using setupFiles inside reporters HOT 2
- [Bug]: toHaveBeenCalledWith matcher matches with any URL object
- [Bug]: OpenTelemetry Span Not Being Captured in Jest Tests with Instrumentation (But it works with other test runners) HOT 6
- [Feature]: support type inference for function parameters
- [Feature]: Restore Access to Utility Functions in "jest-snapshot/utils" for Continued Tooling Support HOT 3
- [Bug]: globalSetup doesn't process moduleNameMappers HOT 1
- [Bug]: Failed `toEqual` assertion has some sort of side-effect that causes toEqual using the same value in subsequent tests to fail incorrectly (Jest 29+ only) HOT 5
- [Bug]: fails to mock resolved value HOT 1
- [Bug]: Console does not clear after test when using --watch 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.