{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/977","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/977/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/977/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/977/events","html_url":"https://github.com/facebook/jest/issues/977","id":153612383,"number":977,"title":"Jest + Supertest + Restify not working","user":{"login":"ravilution","id":12025257,"avatar_url":"https://avatars.githubusercontent.com/u/12025257?v=3","gravatar_id":"","url":"https://api.github.com/users/ravilution","html_url":"https://github.com/ravilution","followers_url":"https://api.github.com/users/ravilution/followers","following_url":"https://api.github.com/users/ravilution/following{/other_user}","gists_url":"https://api.github.com/users/ravilution/gists{/gist_id}","starred_url":"https://api.github.com/users/ravilution/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravilution/subscriptions","organizations_url":"https://api.github.com/users/ravilution/orgs","repos_url":"https://api.github.com/users/ravilution/repos","events_url":"https://api.github.com/users/ravilution/events{/privacy}","received_events_url":"https://api.github.com/users/ravilution/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-07T19:18:30Z","updated_at":"2016-05-09T13:45:08Z","closed_at":"2016-05-09T07:41:08Z","body":"node 5.4.1\r\njest-cli ^12.0.2\r\nrestify ^4.0.4\r\nsupertest ^1.2.0\r\n\r\nI want to use Jest to do backend nodejs REST API testing also. I do not want to install another test tool like mocha etc. \r\n\r\n```javascript\r\n'use strict';\r\nvar request = require('supertest')(require('../appServer'));\r\ndescribe('Test', function () {\r\n    it('works', function () {\r\n        request\r\n            .get('/api')\r\n            .expect(200)\r\n            .end(function (err, res) {\r\n                expect(err).toEqual(null);\r\n            });\r\n    });\r\n});\r\n```\r\n\r\nIn above code `appServer` returns a restify server instance. I am using `supertest` because I want to do code coverage as well. But I get below error. \r\n\r\n\r\n\r\n```javascript\r\nError: Cannot find module '_http_common' from 'stream.js'\r\n    at Runtime._resolveNodeModule (/Users/me/Documents/workspace/node_modules/jest-cli/src/Runtime/Runtime.js:451:11)\r\n    at Object.<anonymous> (/Users/me/Documents/workspace/node_modules/spdy/lib/spdy/stream.js:13:20)\r\n    at Object.<anonymous> (/Users/me/Documents/workspace/node_modules/spdy/lib/spdy.js:19:15)\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/217868029","html_url":"https://github.com/facebook/jest/issues/977#issuecomment-217868029","issue_url":"https://api.github.com/repos/facebook/jest/issues/977","id":217868029,"user":{"login":"ravilution","id":12025257,"avatar_url":"https://avatars.githubusercontent.com/u/12025257?v=3","gravatar_id":"","url":"https://api.github.com/users/ravilution","html_url":"https://github.com/ravilution","followers_url":"https://api.github.com/users/ravilution/followers","following_url":"https://api.github.com/users/ravilution/following{/other_user}","gists_url":"https://api.github.com/users/ravilution/gists{/gist_id}","starred_url":"https://api.github.com/users/ravilution/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravilution/subscriptions","organizations_url":"https://api.github.com/users/ravilution/orgs","repos_url":"https://api.github.com/users/ravilution/repos","events_url":"https://api.github.com/users/ravilution/events{/privacy}","received_events_url":"https://api.github.com/users/ravilution/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T13:45:08Z","updated_at":"2016-05-09T13:45:08Z","body":"Have you reopened? It still says closed."}}