{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/2441","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/2441/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/2441/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/2441/events","html_url":"https://github.com/facebook/jest/issues/2441","id":197505813,"number":2441,"title":"console.log does not output when running tests","user":{"login":"udbhav","id":79340,"avatar_url":"https://avatars3.githubusercontent.com/u/79340?v=4","gravatar_id":"","url":"https://api.github.com/users/udbhav","html_url":"https://github.com/udbhav","followers_url":"https://api.github.com/users/udbhav/followers","following_url":"https://api.github.com/users/udbhav/following{/other_user}","gists_url":"https://api.github.com/users/udbhav/gists{/gist_id}","starred_url":"https://api.github.com/users/udbhav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/udbhav/subscriptions","organizations_url":"https://api.github.com/users/udbhav/orgs","repos_url":"https://api.github.com/users/udbhav/repos","events_url":"https://api.github.com/users/udbhav/events{/privacy}","received_events_url":"https://api.github.com/users/udbhav/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":104,"created_at":"2016-12-25T15:38:10Z","updated_at":"2018-03-22T16:18:16Z","closed_at":"2016-12-27T22:02:31Z","author_association":"NONE","body":"<!-- *Before creating an issue please make sure you are using the latest version of Jest, try re-installing your node_modules folder and run Jest once with `--no-cache` to see if that fixes the problem you are experiencing.* -->\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\n\r\nReport a *bug*.\r\n\r\n**What is the current behavior?**\r\n\r\nCalling `console.log` using the default testEnvironment of `jsdom` doesn't print to stdout.\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can `yarn install` and `yarn test`.**\r\n\r\n1. Clone https://github.com/udbhav/jest-test\r\n2. Run `yarn test`\r\n3. Confirm that you're not seeing anything from console.log\r\n4. Change the `testEnvironment` Jest configuration setting to `node`\r\n5. Re-run `yarn test`\r\n6. Confirm that you're seeing output from console.log\r\n\r\n**What is the expected behavior?**\r\n\r\nI would expect to have console.log always output while my tests are running.\r\n\r\n**Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.**\r\n\r\nSee `package.json` and `yarn.lock` in the repo for package versions.  I'm running node 7.3.0 and yarn 0.18.1"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/375366194","html_url":"https://github.com/facebook/jest/issues/2441#issuecomment-375366194","issue_url":"https://api.github.com/repos/facebook/jest/issues/2441","id":375366194,"user":{"login":"RALifeCoach","id":3857096,"avatar_url":"https://avatars0.githubusercontent.com/u/3857096?v=4","gravatar_id":"","url":"https://api.github.com/users/RALifeCoach","html_url":"https://github.com/RALifeCoach","followers_url":"https://api.github.com/users/RALifeCoach/followers","following_url":"https://api.github.com/users/RALifeCoach/following{/other_user}","gists_url":"https://api.github.com/users/RALifeCoach/gists{/gist_id}","starred_url":"https://api.github.com/users/RALifeCoach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RALifeCoach/subscriptions","organizations_url":"https://api.github.com/users/RALifeCoach/orgs","repos_url":"https://api.github.com/users/RALifeCoach/repos","events_url":"https://api.github.com/users/RALifeCoach/events{/privacy}","received_events_url":"https://api.github.com/users/RALifeCoach/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T16:18:15Z","updated_at":"2018-03-22T16:18:15Z","author_association":"NONE","body":"Better yet, go for it! Here is my repo. https://github.com/RALifeCoach/handandfootserver.git\n\nRun jest from npm or run from the command line. You will see that there are many, many console.logs, but most are covered up.\n\nThere - the dev team has everything they need. Please fix this issue.\n\n> On Mar 22, 2018, at 8:36 AM, Christopher Oliphant <oliphant.christopher@gmail.com> wrote:\n> \n> It is certainly happening for me. What do you need from me so that you can fix it?\n> \n>> On Mar 22, 2018, at 8:32 AM, Dennis Brown <notifications@github.com <mailto:notifications@github.com>> wrote:\n>> \n>> That's true, but there still isn't much for the devs to go on.\n>> \n>> I found this issue most commonly within a nested asynchronous call within an async example. I'm not quite sure the case with anyone else, but showing its use of console.log would surely be helpful to resolving this.\n>> \n>> —\n>> You are receiving this because you commented.\n>> Reply to this email directly, view it on GitHub <https://github.com/facebook/jest/issues/2441#issuecomment-375349444>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ADrayIO4NBB2dZM1XL8ZQO32W9SUnu2Yks5tg8QCgaJpZM4LVbUv>.\n>> \n> \n\n"}}
{"actor":{"display_login":"RALifeCoach"}}