{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/6157","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/6157/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/6157/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/6157/events","html_url":"https://github.com/facebook/jest/issues/6157","id":321396269,"number":6157,"title":"Jest hangs on invalid expectation(s)","user":{"login":"another-guy","id":5762340,"avatar_url":"https://avatars0.githubusercontent.com/u/5762340?v=4","gravatar_id":"","url":"https://api.github.com/users/another-guy","html_url":"https://github.com/another-guy","followers_url":"https://api.github.com/users/another-guy/followers","following_url":"https://api.github.com/users/another-guy/following{/other_user}","gists_url":"https://api.github.com/users/another-guy/gists{/gist_id}","starred_url":"https://api.github.com/users/another-guy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/another-guy/subscriptions","organizations_url":"https://api.github.com/users/another-guy/orgs","repos_url":"https://api.github.com/users/another-guy/repos","events_url":"https://api.github.com/users/another-guy/events{/privacy}","received_events_url":"https://api.github.com/users/another-guy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-09T01:05:56Z","updated_at":"2018-05-09T01:05:56Z","closed_at":null,"author_association":"NONE","body":"## 🐛 Bug Report\r\n\r\nIf my there is at least one expectation in my unit test that is not fulfilled at test time, the entire test suite \"hangs\" instead of reporting a failed (\"red\") test.\r\n\r\n(On contrary, If all my expectations are fulfilled at test time, the tests does not seem to hang.)\r\n\r\n## To Reproduce\r\n\r\n\r\nThe following test code is an example.\r\n\r\n```\r\ndescribe(`Demo`, () => {\r\n  it(`Should Fail, not Hang`, () => {\r\n    expect(1).toEqual(2);\r\n  });\r\n});\r\n```\r\n\r\nRun Jest from Git Bash/CMD, observe the following output:\r\n\r\n```\r\n$ yarn test\r\nyarn run v1.6.0\r\n(node:3316) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.\r\n$ jest -i\r\n\r\n RUNS  __tests__/3-1-single-array-multiple-stacks.spec.ts\r\n\r\n```\r\n\r\nSoftware/Package Versions:\r\n```\r\njest: 22.4.3\r\nts-jest: 22.4.5\r\n\r\n$ node --version\r\nv10.0.0\r\n\r\n$ npm --version\r\n6.0.0\r\n\r\n$ npm --version\r\n6.0.0\r\n\r\n$ tsc --version\r\nVersion 2.8.3\r\n```\r\n\r\n## Expected behavior\r\n\r\nThe test should be reported as failing.\r\n\r\n## Run `npx envinfo --preset jest`\r\n\r\n```bash\r\n$ npx envinfo --preset jest\r\nnpx: installed 1 in 5.897s\r\n\r\n  System:\r\n    OS: Windows 10\r\n    CPU: x64 Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz\r\n  Binaries:\r\n    Yarn: 1.6.0 - C:\\Program Files (x86)\\Yarn\\bin\\yarn.CMD\r\n    npm: 6.0.0 - ~\\AppData\\Roaming\\npm\\npm.CMD\r\n```\r\n"}}
{"actor":{"display_login":"another-guy"}}