{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/981","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/981/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/981/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/981/events","html_url":"https://github.com/facebook/jest/pull/981","id":153779929,"number":981,"title":"expose DIFFABLE_MATCHERS to allow customizing it","user":{"login":"kentaromiura","id":87300,"avatar_url":"https://avatars.githubusercontent.com/u/87300?v=3","gravatar_id":"","url":"https://api.github.com/users/kentaromiura","html_url":"https://github.com/kentaromiura","followers_url":"https://api.github.com/users/kentaromiura/followers","following_url":"https://api.github.com/users/kentaromiura/following{/other_user}","gists_url":"https://api.github.com/users/kentaromiura/gists{/gist_id}","starred_url":"https://api.github.com/users/kentaromiura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentaromiura/subscriptions","organizations_url":"https://api.github.com/users/kentaromiura/orgs","repos_url":"https://api.github.com/users/kentaromiura/repos","events_url":"https://api.github.com/users/kentaromiura/events{/privacy}","received_events_url":"https://api.github.com/users/kentaromiura/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/jest/labels/CLA%20Signed","name":"CLA Signed","color":"009900"},{"url":"https://api.github.com/repos/facebook/jest/labels/GH%20Review:%20accepted","name":"GH Review: accepted","color":"ededed"},{"url":"https://api.github.com/repos/facebook/jest/labels/Import%20Started","name":"Import Started","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-09T13:46:54Z","updated_at":"2016-05-11T18:26:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/jest/pulls/981","html_url":"https://github.com/facebook/jest/pull/981","diff_url":"https://github.com/facebook/jest/pull/981.diff","patch_url":"https://github.com/facebook/jest/pull/981.patch"},"body":"expose DIFFABLE_MATCHERS to allow customizing it\r\nthis allow formatMatchFailure to use the custom chai-diff messages for any custom matchers:\r\n\r\neg: in a theoretical `test-framework-setup.js`:\r\n```\r\n// ...\r\nconst JasmineFormatter = require('jest-util/lib/JasmineFormatter');\r\nJasmineFormatter.DIFFABLE_MATCHERS.toMatchSnapshot = true;\r\n// ...\r\n\r\nfailureMessage = formatter.formatMatchFailure(res);\r\n```\r\n\r\nwill show something like:\r\n<img width=\"1417\" alt=\"screen shot 2016-05-09 at 2 36 01 pm\" src=\"https://cloud.githubusercontent.com/assets/87300/15115038/ce7a75ae-15f4-11e6-8c54-66bc67ee19cb.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/218547169","html_url":"https://github.com/facebook/jest/pull/981#issuecomment-218547169","issue_url":"https://api.github.com/repos/facebook/jest/issues/981","id":218547169,"user":{"login":"facebook-github-bot-6","id":8398675,"avatar_url":"https://avatars.githubusercontent.com/u/8398675?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook-github-bot-6","html_url":"https://github.com/facebook-github-bot-6","followers_url":"https://api.github.com/users/facebook-github-bot-6/followers","following_url":"https://api.github.com/users/facebook-github-bot-6/following{/other_user}","gists_url":"https://api.github.com/users/facebook-github-bot-6/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook-github-bot-6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook-github-bot-6/subscriptions","organizations_url":"https://api.github.com/users/facebook-github-bot-6/orgs","repos_url":"https://api.github.com/users/facebook-github-bot-6/repos","events_url":"https://api.github.com/users/facebook-github-bot-6/events{/privacy}","received_events_url":"https://api.github.com/users/facebook-github-bot-6/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T18:26:50Z","updated_at":"2016-05-11T18:26:50Z","body":"Thanks for importing. If you are an FB employee go to [Phabricator](https://our.intern.facebook.com/intern/opensource/github/pull_request/1015764171793701/int_phab) to review."}}