{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/4572","labels_url":"https://api.github.com/repos/facebook/react-native/issues/4572/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/4572/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/4572/events","html_url":"https://github.com/facebook/react-native/issues/4572","id":120512614,"number":4572,"title":"Jest fails on use of require('warning')  v0.16","user":{"login":"adriansprod","id":5958031,"avatar_url":"https://avatars.githubusercontent.com/u/5958031?v=3","gravatar_id":"","url":"https://api.github.com/users/adriansprod","html_url":"https://github.com/adriansprod","followers_url":"https://api.github.com/users/adriansprod/followers","following_url":"https://api.github.com/users/adriansprod/following{/other_user}","gists_url":"https://api.github.com/users/adriansprod/gists{/gist_id}","starred_url":"https://api.github.com/users/adriansprod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriansprod/subscriptions","organizations_url":"https://api.github.com/users/adriansprod/orgs","repos_url":"https://api.github.com/users/adriansprod/repos","events_url":"https://api.github.com/users/adriansprod/events{/privacy}","received_events_url":"https://api.github.com/users/adriansprod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-05T00:15:57Z","updated_at":"2015-12-05T00:16:17Z","closed_at":null,"body":"Jest tests which include React fail anywhere require('warning') is used by RN, which is in 57 places. I am using v0.16.0 and latest node. The first error is as follows.\r\n\r\nUnexpected token ...\r\n        at Object.exports.runInContext (vm.js:43:16)\r\n        at Object.<anonymous> (node_modules/react-native/node_modules/react-haste/renderers/dom/shared/DOMPropertyOperations.js:19\r\n\r\n If I remove the use of 'warning' in that file then the error is triggered on the next file which uses it"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/162115865","html_url":"https://github.com/facebook/react-native/issues/4572#issuecomment-162115865","issue_url":"https://api.github.com/repos/facebook/react-native/issues/4572","id":162115865,"user":{"login":"facebook-github-bot","id":6422482,"avatar_url":"https://avatars.githubusercontent.com/u/6422482?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook-github-bot","html_url":"https://github.com/facebook-github-bot","followers_url":"https://api.github.com/users/facebook-github-bot/followers","following_url":"https://api.github.com/users/facebook-github-bot/following{/other_user}","gists_url":"https://api.github.com/users/facebook-github-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook-github-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook-github-bot/subscriptions","organizations_url":"https://api.github.com/users/facebook-github-bot/orgs","repos_url":"https://api.github.com/users/facebook-github-bot/repos","events_url":"https://api.github.com/users/facebook-github-bot/events{/privacy}","received_events_url":"https://api.github.com/users/facebook-github-bot/received_events","type":"User","site_admin":false},"created_at":"2015-12-05T00:16:17Z","updated_at":"2015-12-05T00:16:17Z","body":"Hey adriansprod, thanks for reporting this issue!\n\nReact Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.\n\n- If this is a feature request or a bug that you would like to be fixed by the team, please report it on [Product Pains](https://productpains.com/product/react-native/). It has a ranking feature that lets us focus on the most important issues the community is experiencing.\n\n- If you don't know how to do something or not sure whether some behavior is expected or a bug, please ask on [StackOverflow](http://stackoverflow.com/questions/tagged/react-native) with the tag `react-native` or for more real time interactions, ask on [Discord](https://discord.gg/0ZcbPKXt5bZjGY5n) in the #react-native channel.\n\n- We welcome clear issues and PRs that are ready for in-depth discussion; thank you for your contributions!\n"}}