-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Error: Unable to parse child response data #259
Error: Unable to parse child response data #259
Comments
👍 |
I think I solved it by using Node v0.10.36 and Jest v0.2.2 instead of v0.12.0 and v0.3.0 respectively. |
Same problem for me, I've tried with Node v0.10.36 and Jest v0.2.2 but still not working
|
This happens for me when I have more than one test file. If I have one test file with multiple test everything is fine but if I move a test into a new file with a describe block things fail. Here is a gist of my 2 test https://gist.github.com/ninjapanzer/f6151ec909afe72b271f |
I was getting this error as well, but only while I was debugging some babel-compiled jsx/es6 files. As soon as I stopped console.log'ing to stdout, the problem went away. Maybe check to see if you're inadvertently writing to |
Same for me when have more than one test files. node v0.10.38 |
I have been having some interesting issues trying to get jest set up, and just ran in to this one. I was having the issue described here: https://gist.github.com/anonymous/ac700b7968b432057088 Then I made another test file to try something different, and ended up with the result in this thread. @drd removing console.log from my preprocessor.js fixed the problem mentioned here, but now both of my files are giving me the same error as the above gist. Jest seems really buggy... |
I also encountered this. It only happened when using several files and when I had configured setupTestFrameworkScriptFile which had this line:
Command: jest spec-1.js spec-2.js
Versions: node --version babel-node --version package.json
|
@drd Thanks! That worked! |
I had the same issue. It turns out to be the 'morgan' middleware. I didn't dig into morgan, just used NODE_ENV=test to bypass it when running tests.
|
I had a similar problem caused by my bunyan logger writing to stdout. Seems a little brittle to break the test framework if something writes to stdout. console.log seems to work inside the test cases. But if I try to use bunyan logging, the log messages either don't appear, or break the framework with the response 'Unable to parse child response data'. |
I ran into this issue when using
Removing |
Feels like a timings issue or some kind of race condition. |
Should be fixed via #540 (will go out with version 0.6). Please reopen if that's not the case. |
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. |
Has anyone else experienced this error when running
jest
on their tests? I use Coffeescript and a preprocessor that transpiles to Javascript before testing (not sure if relevant).Terminal output
It has nothing to do with the
__tests__/merge.coffee
code; I remove it and the error persisted.What's the solution here?
The text was updated successfully, but these errors were encountered: