Skip to content

Instantly share code, notes, and snippets.

@captainkovalsky
Created August 9, 2015 12:16
Show Gist options
  • Save captainkovalsky/2d031a75dfbe93932982 to your computer and use it in GitHub Desktop.
Save captainkovalsky/2d031a75dfbe93932982 to your computer and use it in GitHub Desktop.
viktor@viktor-pc:~/Projects/github/LRN-React$ npm test
> myapp@0.0.0 test /home/viktor/Projects/github/LRN-React
> jest
== NOTICE: ==
Node and io.js will be merging. http://bit.ly/1dOjLVK
On August 1st, 2015, Jest v0.5.x will work only on io.js until the merger is complete
Legacy v0.4.x for Node 0.10.x will still be available on
on npm and from the "0.4.x" branch on GitHub.
Using Jest CLI v0.4.18
FAIL __tests__/phone-store/phone-store-test.js
Error: Unable to parse child response data:
preprocessor
{
"response": {
"numFailingTests": 1,
"numPassingTests": 0,
"testResults": [
{
"title": "it adds 1 + 1 to equal 2",
"ancestorTitles": [
"sotre"
],
"failureMessages": [
"\u001b[31m\u001b[1m\u001b[4mExpected:\u001b[0m \u001b[41m2\u001b[0m \u001b[31m\u001b[1m\u001b[4mtoBe:\u001b[0m \u001b[41m0\u001b[0m\n at Spec.<anonymous> (/home/viktor/Projects/github/LRN-React/app/__tests__/phone-store/phone-store-test.js:3:18)\n at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)"
],
"logMessages": [],
"numPassingAsserts": 0
}
],
"logMessages": [],
"perfStats": {
"start": 1439122553779,
"end": 1439122553846
},
"testFilePath": "/home/viktor/Projects/github/LRN-React/app/__tests__/phone-store/phone-store-test.js",
"coverage": {}
}
}
FAIL __tests__/pagination-test.js
Error: Unable to parse child response data:
preprocessor
{
"response": {
"numFailingTests": 1,
"numPassingTests": 0,
"testResults": [
{
"title": "it adds 1 + 2 to equal 3",
"ancestorTitles": [
"sum"
],
"failureMessages": [
"\u001b[31m\u001b[1m\u001b[4mExpected:\u001b[0m \u001b[41m45\u001b[0m \u001b[31m\u001b[1m\u001b[4mtoBe:\u001b[0m \u001b[41m3\u001b[0m\n at Spec.<anonymous> (/home/viktor/Projects/github/LRN-React/app/__tests__/pagination-test.js:5:19)\n at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)"
],
"logMessages": [],
"numPassingAsserts": 0
}
],
"logMessages": [],
"perfStats": {
"start": 1439122553785,
"end": 1439122553853
},
"testFilePath": "/home/viktor/Projects/github/LRN-React/app/__tests__/pagination-test.js",
"coverage": {}
}
}
Failed with unexpected error.
/home/viktor/Projects/github/LRN-React/node_modules/jest-cli/src/jest.js:190
throw error;
^
Error: Unable to parse child response data:
preprocessor
{
"response": {
"numFailingTests": 1,
"numPassingTests": 0,
"testResults": [
{
"title": "it adds 1 + 2 to equal 3",
"ancestorTitles": [
"sum"
],
"failureMessages": [
"\u001b[31m\u001b[1m\u001b[4mExpected:\u001b[0m \u001b[41m45\u001b[0m \u001b[31m\u001b[1m\u001b[4mtoBe:\u001b[0m \u001b[41m3\u001b[0m\n at Spec.<anonymous> (/home/viktor/Projects/github/LRN-React/app/__tests__/pagination-test.js:5:19)\n at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)"
],
"logMessages": [],
"numPassingAsserts": 0
}
],
"logMessages": [],
"perfStats": {
"start": 1439122553785,
"end": 1439122553853
},
"testFilePath": "/home/viktor/Projects/github/LRN-React/app/__tests__/pagination-test.js",
"coverage": {}
}
}
at Worker._onStdout (/home/viktor/Projects/github/LRN-React/node_modules/jest-cli/node_modules/node-worker-pool/Worker.js:113:9)
at Socket.emit (events.js:95:17)
at Socket.<anonymous> (_stream_readable.js:765:14)
at Socket.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:427:10)
at emitReadable (_stream_readable.js:423:5)
at readableAddChunk (_stream_readable.js:166:9)
at Socket.Readable.push (_stream_readable.js:128:10)
at Pipe.onread (net.js:529:21)
npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment