{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/5634","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/5634/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/5634/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/5634/events","html_url":"https://github.com/facebook/jest/issues/5634","id":299041578,"node_id":"MDU6SXNzdWUyOTkwNDE1Nzg=","number":5634,"title":"console.assert not throwing with v22.4.0","user":{"login":"tkrotoff","id":643434,"node_id":"MDQ6VXNlcjY0MzQzNA==","avatar_url":"https://avatars2.githubusercontent.com/u/643434?v=4","gravatar_id":"","url":"https://api.github.com/users/tkrotoff","html_url":"https://github.com/tkrotoff","followers_url":"https://api.github.com/users/tkrotoff/followers","following_url":"https://api.github.com/users/tkrotoff/following{/other_user}","gists_url":"https://api.github.com/users/tkrotoff/gists{/gist_id}","starred_url":"https://api.github.com/users/tkrotoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkrotoff/subscriptions","organizations_url":"https://api.github.com/users/tkrotoff/orgs","repos_url":"https://api.github.com/users/tkrotoff/repos","events_url":"https://api.github.com/users/tkrotoff/events{/privacy}","received_events_url":"https://api.github.com/users/tkrotoff/received_events","type":"User","site_admin":false},"labels":[{"id":69880772,"node_id":"MDU6TGFiZWw2OTg4MDc3Mg==","url":"https://api.github.com/repos/facebook/jest/labels/Bug%20:bug:","name":"Bug :bug:","color":"fc2929","default":false},{"id":376066135,"node_id":"MDU6TGFiZWwzNzYwNjYxMzU=","url":"https://api.github.com/repos/facebook/jest/labels/Good%20First%20Issue%20:wave:","name":"Good First Issue :wave:","color":"0e8a16","default":false},{"id":442775532,"node_id":"MDU6TGFiZWw0NDI3NzU1MzI=","url":"https://api.github.com/repos/facebook/jest/labels/Help%20Wanted","name":"Help Wanted","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-02-21T16:37:54Z","updated_at":"2018-06-14T18:36:51Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"According to [NodeJS doc](https://nodejs.org/api/console.html#console_console_assert_value_message_args):\r\n> a falsy assertion will cause an `AssertionError` to be thrown\r\n\r\n`console.assert(false)` does not throw with v22.4.0 (was working at least with v22.1.4):\r\n```TypeScript\r\n// Does not work anymore\r\nexpect(() => console.assert(false, 'message')).toThrow('message');\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/397396673","html_url":"https://github.com/facebook/jest/issues/5634#issuecomment-397396673","issue_url":"https://api.github.com/repos/facebook/jest/issues/5634","id":397396673,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzM5NjY3Mw==","user":{"login":"jeysal","id":16069751,"node_id":"MDQ6VXNlcjE2MDY5NzUx","avatar_url":"https://avatars0.githubusercontent.com/u/16069751?v=4","gravatar_id":"","url":"https://api.github.com/users/jeysal","html_url":"https://github.com/jeysal","followers_url":"https://api.github.com/users/jeysal/followers","following_url":"https://api.github.com/users/jeysal/following{/other_user}","gists_url":"https://api.github.com/users/jeysal/gists{/gist_id}","starred_url":"https://api.github.com/users/jeysal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeysal/subscriptions","organizations_url":"https://api.github.com/users/jeysal/orgs","repos_url":"https://api.github.com/users/jeysal/repos","events_url":"https://api.github.com/users/jeysal/events{/privacy}","received_events_url":"https://api.github.com/users/jeysal/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T18:36:51Z","updated_at":"2018-06-14T18:36:51Z","author_association":"NONE","body":"`console.assert` has been changed to not throw in Node 10 (https://github.com/nodejs/node/pull/17706), so all environments now comply with the console spec.\r\nUsers of earlier Node versions can use the \"polyfill\" mentioned earlier.\r\nI think this can be closed."}}
{"actor":{"display_login":"jeysal"}}