{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/create-react-app/issues/1368","repository_url":"https://api.github.com/repos/facebook/create-react-app","labels_url":"https://api.github.com/repos/facebook/create-react-app/issues/1368/labels{/name}","comments_url":"https://api.github.com/repos/facebook/create-react-app/issues/1368/comments","events_url":"https://api.github.com/repos/facebook/create-react-app/issues/1368/events","html_url":"https://github.com/facebook/create-react-app/issues/1368","id":199815709,"node_id":"MDU6SXNzdWUxOTk4MTU3MDk=","number":1368,"title":"React-scripts test is swallowing console logs, warnings, and errors","user":{"login":"zachfedor","id":11153782,"node_id":"MDQ6VXNlcjExMTUzNzgy","avatar_url":"https://avatars2.githubusercontent.com/u/11153782?v=4","gravatar_id":"","url":"https://api.github.com/users/zachfedor","html_url":"https://github.com/zachfedor","followers_url":"https://api.github.com/users/zachfedor/followers","following_url":"https://api.github.com/users/zachfedor/following{/other_user}","gists_url":"https://api.github.com/users/zachfedor/gists{/gist_id}","starred_url":"https://api.github.com/users/zachfedor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachfedor/subscriptions","organizations_url":"https://api.github.com/users/zachfedor/orgs","repos_url":"https://api.github.com/users/zachfedor/repos","events_url":"https://api.github.com/users/zachfedor/events{/privacy}","received_events_url":"https://api.github.com/users/zachfedor/received_events","type":"User","site_admin":false},"labels":[{"id":409578974,"node_id":"MDU6TGFiZWw0MDk1Nzg5NzQ=","url":"https://api.github.com/repos/facebook/create-react-app/labels/issue:%20bug","name":"issue: bug","color":"ee0701","default":false},{"id":413042976,"node_id":"MDU6TGFiZWw0MTMwNDI5NzY=","url":"https://api.github.com/repos/facebook/create-react-app/labels/tag:%20underlying%20tools","name":"tag: underlying tools","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2017-01-10T13:03:21Z","updated_at":"2018-11-10T14:06:17Z","closed_at":"2017-02-11T21:45:09Z","author_association":"NONE","body":"### Can you reproduce the problem with latest npm?\r\n\r\nYes, I'm already on `npm@4.0.5`.\r\n\r\n### Description\r\n\r\nCreate a new app:\r\n```\r\ncreate-react-app test-app\r\ncd test-app\r\n```\r\nAdd the following tests to `src/App.test.js`:\r\n```\r\nit('should log when test passes', () => {\r\n  console.log('test');\r\n  console.warn('test');\r\n  console.error('test');\r\n  expect(0).toEqual(0);\r\n});\r\n\r\nit('should log when test fails', () => {\r\n  console.log('test');\r\n  console.warn('test');\r\n  console.error('test');\r\n  expect(0).toEqual(1);\r\n});\r\n```\r\nRun the tests with either `yarn` or `npm`.\r\n\r\n### Expected behavior\r\n\r\nI would expect any of these `console` statements to print to stdout somewhere in the test output.\r\n\r\n### Actual behavior\r\n\r\nThe test output shows two passing tests and one failing test, as expected, along with the usual general test info and commands. But the logged output is nowhere to be found.\r\n\r\n### Environment\r\n\r\n1. `npm ls react-scripts` (if you haven’t ejected): 0.8.5\r\n2. `node -v`: v7.4.0\r\n3. `npm -v`: 4.0.5\r\n\r\n1. Operating system: OSX 10.11.6\r\n2. Browser and version: n/a\r\n\r\n### Reproducible Demo\r\n\r\nSee description"},"comment":{"url":"https://api.github.com/repos/facebook/create-react-app/issues/comments/437586229","html_url":"https://github.com/facebook/create-react-app/issues/1368#issuecomment-437586229","issue_url":"https://api.github.com/repos/facebook/create-react-app/issues/1368","id":437586229,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzU4NjIyOQ==","user":{"login":"jb-1980","id":2569898,"node_id":"MDQ6VXNlcjI1Njk4OTg=","avatar_url":"https://avatars1.githubusercontent.com/u/2569898?v=4","gravatar_id":"","url":"https://api.github.com/users/jb-1980","html_url":"https://github.com/jb-1980","followers_url":"https://api.github.com/users/jb-1980/followers","following_url":"https://api.github.com/users/jb-1980/following{/other_user}","gists_url":"https://api.github.com/users/jb-1980/gists{/gist_id}","starred_url":"https://api.github.com/users/jb-1980/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jb-1980/subscriptions","organizations_url":"https://api.github.com/users/jb-1980/orgs","repos_url":"https://api.github.com/users/jb-1980/repos","events_url":"https://api.github.com/users/jb-1980/events{/privacy}","received_events_url":"https://api.github.com/users/jb-1980/received_events","type":"User","site_admin":false},"created_at":"2018-11-10T14:06:17Z","updated_at":"2018-11-10T14:06:17Z","author_association":"NONE","body":"This issue has been closed for a while, but it popped again for me today. For those who may also be looking for a solution over a year later, some searching suggested that adding the `--verbose=false` flag may resolve it. Indeed, it did.\r\n\r\nSpecifically, in package.json I updated the line for the test script to be `\"test\": \"react-scripts test --env=jsdom --verbose=false\"`\r\n\r\nhttps://github.com/facebook/jest/issues/2441#issuecomment-424310466"}}
{"actor":{"display_login":"jb-1980"}}