{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/2121","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/2121/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/2121/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/2121/events","html_url":"https://github.com/facebook/jest/issues/2121","id":190127492,"number":2121,"title":"Plan Total Assertion Count","user":{"login":"browniefed","id":1714673,"avatar_url":"https://avatars.githubusercontent.com/u/1714673?v=3","gravatar_id":"","url":"https://api.github.com/users/browniefed","html_url":"https://github.com/browniefed","followers_url":"https://api.github.com/users/browniefed/followers","following_url":"https://api.github.com/users/browniefed/following{/other_user}","gists_url":"https://api.github.com/users/browniefed/gists{/gist_id}","starred_url":"https://api.github.com/users/browniefed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/browniefed/subscriptions","organizations_url":"https://api.github.com/users/browniefed/orgs","repos_url":"https://api.github.com/users/browniefed/repos","events_url":"https://api.github.com/users/browniefed/events{/privacy}","received_events_url":"https://api.github.com/users/browniefed/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-11-17T18:34:44Z","updated_at":"2016-11-29T16:33:42Z","closed_at":"2016-11-29T16:33:42Z","body":"Currently looking at adding the ability to plan the amount of assertions, which will be useful for async testing.\r\nCurrently I see there is access to `result.failedExpectations.length + result.passedExpectations.length` in the `specResultCallback`. So getting the total is easy.\r\n\r\nHowever struggling to figure out the best way to set up the expectation count w/ expect call. Like expect().toHaveAssertionCount(5) (terrible name).\r\n\r\nAny pointers on a direction to go on this would be great.\r\nLike catching a known error in `Spec.prototype.onException`?"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/263622164","html_url":"https://github.com/facebook/jest/issues/2121#issuecomment-263622164","issue_url":"https://api.github.com/repos/facebook/jest/issues/2121","id":263622164,"user":{"login":"cpojer","id":13352,"avatar_url":"https://avatars.githubusercontent.com/u/13352?v=3","gravatar_id":"","url":"https://api.github.com/users/cpojer","html_url":"https://github.com/cpojer","followers_url":"https://api.github.com/users/cpojer/followers","following_url":"https://api.github.com/users/cpojer/following{/other_user}","gists_url":"https://api.github.com/users/cpojer/gists{/gist_id}","starred_url":"https://api.github.com/users/cpojer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpojer/subscriptions","organizations_url":"https://api.github.com/users/cpojer/orgs","repos_url":"https://api.github.com/users/cpojer/repos","events_url":"https://api.github.com/users/cpojer/events{/privacy}","received_events_url":"https://api.github.com/users/cpojer/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T16:33:42Z","updated_at":"2016-11-29T16:33:42Z","body":"This will be in the next Jest release as `expect.assertions(number)`."}}
{"actor":{"display_login":"cpojer"}}