jest icon indicating copy to clipboard operation
jest copied to clipboard

Importing React causes jest to fail silently

Open zhon opened this issue 11 years ago • 6 comments

Versions Node 12.2 NPM 2.7.4 jest-cli 4.5

Running the following pauses for a couple of seconds then the command prompt appears. No error messages (or even a return) are ever reported.

import React from 'react/addons';

Tests run when I don't include anything related to React.

zhon avatar May 22 '15 22:05 zhon

try switching to node v0.10 and rebuilding your dependencies

doodzik avatar May 26 '15 08:05 doodzik

having this same problem, not excited about that solution, any ideas on the cause?

kmazanec avatar May 26 '15 22:05 kmazanec

+1 same here (NodeJS v0.12.3) :disappointed:

$ me@there ~/project (git)-[master] % jest
Using Jest CLI v0.4.5
Waiting on 1 test...%
$ me@there ~/project (git)-[master] %

screendriver avatar May 28 '15 13:05 screendriver

I found the right issue for this: #243

screendriver avatar May 28 '15 13:05 screendriver

We're going to invest into io.js update, and 0.10 will likely be final version for legacy node (since new jsdom version doesn't support 0.12 anymore).

Closing this issue, since it's tracked in #243.

DmitrySoshnikov avatar Jun 03 '15 23:06 DmitrySoshnikov

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[bot] avatar May 14 '21 17:05 github-actions[bot]