{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/5064","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/5064/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/5064/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/5064/events","html_url":"https://github.com/facebook/jest/issues/5064","id":281374012,"number":5064,"title":"Jest is using `stderr` as output","user":{"login":"easingthemes","id":2750284,"avatar_url":"https://avatars0.githubusercontent.com/u/2750284?v=4","gravatar_id":"","url":"https://api.github.com/users/easingthemes","html_url":"https://github.com/easingthemes","followers_url":"https://api.github.com/users/easingthemes/followers","following_url":"https://api.github.com/users/easingthemes/following{/other_user}","gists_url":"https://api.github.com/users/easingthemes/gists{/gist_id}","starred_url":"https://api.github.com/users/easingthemes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easingthemes/subscriptions","organizations_url":"https://api.github.com/users/easingthemes/orgs","repos_url":"https://api.github.com/users/easingthemes/repos","events_url":"https://api.github.com/users/easingthemes/events{/privacy}","received_events_url":"https://api.github.com/users/easingthemes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-12T12:54:48Z","updated_at":"2018-02-14T18:00:44Z","closed_at":null,"author_association":"NONE","body":"**Do you want to request a _feature_ or report a _bug_?**\r\n\r\nbug\r\n\r\n**What is the current behavior?**\r\n\r\njest output is using `stderr`.\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce and\r\neither a repl.it demo through https://repl.it/languages/jest or a minimal\r\nrepository on GitHub that we can `yarn install` and `yarn test`.**\r\n\r\nThis repo (https://github.com/easingthemes/jest-output) has `task.js` file which uses `nodejs spawn` to run `npm test` (`jest`) and print output by type.\r\n\r\n\r\ncommand:\r\n\r\n```\r\nnode ./task.js\r\n```\r\n\r\nOutput:\r\n\r\n```\r\n> jest\r\n\r\nstderr: PASS ./add.test.js\r\nstderr:   add\r\nstderr:     ✓ should add two numbers (3ms)\r\nstderr:\r\n\r\nstderr: Test Suites: 1 passed, 1 total\r\nTests:       1 passed, 1 total\r\nSnapshots:   0 total\r\nTime:        0.582s, estimated 1s\r\nRan all test suites.\r\n```\r\n\r\n\r\n**What is the expected behavior?**\r\n\r\nNot using `stderr` for output, use `stdout` instead.\r\n\r\n**Please provide your exact Jest configuration and mention your Jest, node,\r\nyarn/npm version and operating system.**\r\n\r\n```\r\nnode: v8.1.2\r\nnpm: 5.0.3\r\njest: ^21.2.1\r\nMacOS 10.12.6\r\n```\r\n\r\nRelated:\r\nhttps://github.com/facebook/jest/issues/4384\r\n\r\nRight output type is important when using some other tools, eg. Jenkins / Maven. Because process is marked as failed due this error."},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/365692414","html_url":"https://github.com/facebook/jest/issues/5064#issuecomment-365692414","issue_url":"https://api.github.com/repos/facebook/jest/issues/5064","id":365692414,"user":{"login":"milesj","id":143744,"avatar_url":"https://avatars2.githubusercontent.com/u/143744?v=4","gravatar_id":"","url":"https://api.github.com/users/milesj","html_url":"https://github.com/milesj","followers_url":"https://api.github.com/users/milesj/followers","following_url":"https://api.github.com/users/milesj/following{/other_user}","gists_url":"https://api.github.com/users/milesj/gists{/gist_id}","starred_url":"https://api.github.com/users/milesj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milesj/subscriptions","organizations_url":"https://api.github.com/users/milesj/orgs","repos_url":"https://api.github.com/users/milesj/repos","events_url":"https://api.github.com/users/milesj/events{/privacy}","received_events_url":"https://api.github.com/users/milesj/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T18:00:44Z","updated_at":"2018-02-14T18:00:44Z","author_association":"NONE","body":"I've also noticed that `NODE_ENV` is not \"test\" when running through a child process. Not sure if related or not."}}
{"actor":{"display_login":"milesj"}}