{"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7099","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7099/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7099/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7099/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/7099","id":348272039,"node_id":"MDU6SXNzdWUzNDgyNzIwMzk=","number":7099,"title":"[gatsby-image] Snapshot test for gatsby-image","user":{"login":"shobhitchittora","id":4711855,"node_id":"MDQ6VXNlcjQ3MTE4NTU=","avatar_url":"https://avatars1.githubusercontent.com/u/4711855?v=4","gravatar_id":"","url":"https://api.github.com/users/shobhitchittora","html_url":"https://github.com/shobhitchittora","followers_url":"https://api.github.com/users/shobhitchittora/followers","following_url":"https://api.github.com/users/shobhitchittora/following{/other_user}","gists_url":"https://api.github.com/users/shobhitchittora/gists{/gist_id}","starred_url":"https://api.github.com/users/shobhitchittora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shobhitchittora/subscriptions","organizations_url":"https://api.github.com/users/shobhitchittora/orgs","repos_url":"https://api.github.com/users/shobhitchittora/repos","events_url":"https://api.github.com/users/shobhitchittora/events{/privacy}","received_events_url":"https://api.github.com/users/shobhitchittora/received_events","type":"User","site_admin":false},"labels":[{"id":1003935820,"node_id":"MDU6TGFiZWwxMDAzOTM1ODIw","url":"https://api.github.com/repos/gatsbyjs/gatsby/labels/%F0%9F%92%A1%20Proposed%20Work","name":"💡 Proposed Work","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-07T11:01:57Z","updated_at":"2018-08-07T11:30:28Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Refs: #7089\r\n\r\nThis is an extension / ref to the above mentioned issue.\r\n\r\nTo Snapshot testing for [`gatsby-image`](https://www.gatsbyjs.org/packages/gatsby-image/?=gatsby-images) component, we have 2 choices - \r\n\r\n1. `enzyme` with `jest`\r\n2.  `react-testing-library`\r\n\r\nI want to have a clear understanding of which to use for the purpose ( I've personally used enzyme with jest and it works great )."},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/411025084","html_url":"https://github.com/gatsbyjs/gatsby/issues/7099#issuecomment-411025084","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7099","id":411025084,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTAyNTA4NA==","user":{"login":"alexandernanberg","id":8997319,"node_id":"MDQ6VXNlcjg5OTczMTk=","avatar_url":"https://avatars3.githubusercontent.com/u/8997319?v=4","gravatar_id":"","url":"https://api.github.com/users/alexandernanberg","html_url":"https://github.com/alexandernanberg","followers_url":"https://api.github.com/users/alexandernanberg/followers","following_url":"https://api.github.com/users/alexandernanberg/following{/other_user}","gists_url":"https://api.github.com/users/alexandernanberg/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandernanberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandernanberg/subscriptions","organizations_url":"https://api.github.com/users/alexandernanberg/orgs","repos_url":"https://api.github.com/users/alexandernanberg/repos","events_url":"https://api.github.com/users/alexandernanberg/events{/privacy}","received_events_url":"https://api.github.com/users/alexandernanberg/received_events","type":"User","site_admin":false},"created_at":"2018-08-07T11:30:28Z","updated_at":"2018-08-07T11:30:28Z","author_association":"MEMBER","body":"You can actually use `Jest` with `react-testing-library` as well (it's even prefered and how I did it for the `gatsby-link` snapshots). I think the [readme](https://github.com/kentcdodds/react-testing-library/blob/master/README.md) describes what it is and why you want it really well. \r\n\r\n> So rather than dealing with instances of rendered react components, your tests will work with actual DOM nodes. The utilities this library provides facilitate querying the DOM in the same way the user would.\r\n\r\nBut I guess it's personal preference also,  though I'd vote for keeping consistency between packages for which testing libraries we use."}}
{"actor":{"display_login":"alexandernanberg"}}