{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/323","labels_url":"https://api.github.com/repos/facebook/jest/issues/323/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/323/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/323/events","html_url":"https://github.com/facebook/jest/pull/323","id":67250879,"number":323,"title":"Implement `addMatchers` shortcut on `jest`","user":{"login":"yungsters","id":55161,"avatar_url":"https://avatars.githubusercontent.com/u/55161?v=3","gravatar_id":"","url":"https://api.github.com/users/yungsters","html_url":"https://github.com/yungsters","followers_url":"https://api.github.com/users/yungsters/followers","following_url":"https://api.github.com/users/yungsters/following{/other_user}","gists_url":"https://api.github.com/users/yungsters/gists{/gist_id}","starred_url":"https://api.github.com/users/yungsters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yungsters/subscriptions","organizations_url":"https://api.github.com/users/yungsters/orgs","repos_url":"https://api.github.com/users/yungsters/repos","events_url":"https://api.github.com/users/yungsters/events{/privacy}","received_events_url":"https://api.github.com/users/yungsters/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/jest/labels/CLA%20Signed","name":"CLA Signed","color":"009900"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-09T00:30:52Z","updated_at":"2015-05-06T00:09:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/jest/pulls/323","html_url":"https://github.com/facebook/jest/pull/323","diff_url":"https://github.com/facebook/jest/pull/323.diff","patch_url":"https://github.com/facebook/jest/pull/323.patch"},"body":"This will make it easier to use arrow functions when writing unit tests that have custom matchers:\r\n\r\n```js\r\nbeforeEach(() => {\r\n  jest.addMatchers({\r\n    toBeOne() {\r\n      return this.actual === 1;\r\n    }\r\n  });\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/99267389","html_url":"https://github.com/facebook/jest/pull/323#issuecomment-99267389","issue_url":"https://api.github.com/repos/facebook/jest/issues/323","id":99267389,"user":{"login":"DmitrySoshnikov","id":244010,"avatar_url":"https://avatars.githubusercontent.com/u/244010?v=3","gravatar_id":"","url":"https://api.github.com/users/DmitrySoshnikov","html_url":"https://github.com/DmitrySoshnikov","followers_url":"https://api.github.com/users/DmitrySoshnikov/followers","following_url":"https://api.github.com/users/DmitrySoshnikov/following{/other_user}","gists_url":"https://api.github.com/users/DmitrySoshnikov/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitrySoshnikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitrySoshnikov/subscriptions","organizations_url":"https://api.github.com/users/DmitrySoshnikov/orgs","repos_url":"https://api.github.com/users/DmitrySoshnikov/repos","events_url":"https://api.github.com/users/DmitrySoshnikov/events{/privacy}","received_events_url":"https://api.github.com/users/DmitrySoshnikov/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T00:09:08Z","updated_at":"2015-05-06T00:09:08Z","body":"Shall we go with this PR? Also, we have the process of upgrading to jasmine2 in https://github.com/facebook/jest/pull/330."}}