{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/2713","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/2713/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/2713/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/2713/events","html_url":"https://github.com/facebook/jest/issues/2713","id":203478416,"node_id":"MDU6SXNzdWUyMDM0Nzg0MTY=","number":2713,"title":"Tests are run even when beforeAll throws error","user":{"login":"dirkmc","id":169124,"node_id":"MDQ6VXNlcjE2OTEyNA==","avatar_url":"https://avatars3.githubusercontent.com/u/169124?v=4","gravatar_id":"","url":"https://api.github.com/users/dirkmc","html_url":"https://github.com/dirkmc","followers_url":"https://api.github.com/users/dirkmc/followers","following_url":"https://api.github.com/users/dirkmc/following{/other_user}","gists_url":"https://api.github.com/users/dirkmc/gists{/gist_id}","starred_url":"https://api.github.com/users/dirkmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dirkmc/subscriptions","organizations_url":"https://api.github.com/users/dirkmc/orgs","repos_url":"https://api.github.com/users/dirkmc/repos","events_url":"https://api.github.com/users/dirkmc/events{/privacy}","received_events_url":"https://api.github.com/users/dirkmc/received_events","type":"User","site_admin":false},"labels":[{"id":442775532,"node_id":"MDU6TGFiZWw0NDI3NzU1MzI=","url":"https://api.github.com/repos/facebook/jest/labels/Help%20Wanted","name":"Help Wanted","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2017-01-26T20:21:16Z","updated_at":"2018-10-17T21:59:47Z","closed_at":"2018-10-16T21:09:58Z","author_association":"NONE","body":"When beforeAll throws an error, or returns a Promise that rejects, the tests are still run. I would expect the tests to not even run at all.\r\n\r\nSee example repo:\r\nhttps://github.com/dirkmc/jest-before-all-error-handling\r\n\r\nAnd the output:\r\n```\r\n> jest __tests__/test.js\r\n\r\n FAIL  __tests__/test.js\r\n  ● test › tests 1 === 1\r\n\r\n    My error\r\n      \r\n      at __tests__/test.js:5:14\r\n      at Object.<anonymous> (__tests__/test.js:4:12)\r\n\r\n  ● test › tests 2 === 2\r\n\r\n    My error\r\n      \r\n      at __tests__/test.js:5:14\r\n      at Object.<anonymous> (__tests__/test.js:4:12)\r\n\r\n  test\r\n    ✕ tests 1 === 1 (2ms)\r\n    ✕ tests 2 === 2 (1ms)\r\n\r\nTest Suites: 1 failed, 1 total\r\nTests:       2 failed, 2 total\r\nSnapshots:   0 total\r\nTime:        0.154s, estimated 1s\r\nRan all test suites matching \"__tests__/test.js\".\r\n  console.log __tests__/test.js:3\r\n    before\r\n\r\n  console.log __tests__/test.js:12\r\n    test 1\r\n\r\n  console.log __tests__/test.js:17\r\n    test 2\r\n\r\n  console.log __tests__/test.js:9\r\n    after\r\n\r\nnpm ERR! Test failed.  See above for more details.\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/430804796","html_url":"https://github.com/facebook/jest/issues/2713#issuecomment-430804796","issue_url":"https://api.github.com/repos/facebook/jest/issues/2713","id":430804796,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDgwNDc5Ng==","user":{"login":"rattrayalex-stripe","id":29717832,"node_id":"MDQ6VXNlcjI5NzE3ODMy","avatar_url":"https://avatars0.githubusercontent.com/u/29717832?v=4","gravatar_id":"","url":"https://api.github.com/users/rattrayalex-stripe","html_url":"https://github.com/rattrayalex-stripe","followers_url":"https://api.github.com/users/rattrayalex-stripe/followers","following_url":"https://api.github.com/users/rattrayalex-stripe/following{/other_user}","gists_url":"https://api.github.com/users/rattrayalex-stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/rattrayalex-stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rattrayalex-stripe/subscriptions","organizations_url":"https://api.github.com/users/rattrayalex-stripe/orgs","repos_url":"https://api.github.com/users/rattrayalex-stripe/repos","events_url":"https://api.github.com/users/rattrayalex-stripe/events{/privacy}","received_events_url":"https://api.github.com/users/rattrayalex-stripe/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T21:59:47Z","updated_at":"2018-10-17T21:59:47Z","author_association":"NONE","body":"Ah, gotcha, thanks – guess if I'd been more patient on my request for a jest-circus readme I'd have found that out 😅 thanks @rickhanlonii !"}}
{"actor":{"display_login":"rattrayalex-stripe"}}