{"action":"created","issue":{"url":"https://api.github.com/repos/emotion-js/emotion/issues/758","repository_url":"https://api.github.com/repos/emotion-js/emotion","labels_url":"https://api.github.com/repos/emotion-js/emotion/issues/758/labels{/name}","comments_url":"https://api.github.com/repos/emotion-js/emotion/issues/758/comments","events_url":"https://api.github.com/repos/emotion-js/emotion/issues/758/events","html_url":"https://github.com/emotion-js/emotion/issues/758","id":339334887,"node_id":"MDU6SXNzdWUzMzkzMzQ4ODc=","number":758,"title":"How to use jest-emotion with Emotion 9.1.3","user":{"login":"cherihung","id":1596991,"node_id":"MDQ6VXNlcjE1OTY5OTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1596991?v=4","gravatar_id":"","url":"https://api.github.com/users/cherihung","html_url":"https://github.com/cherihung","followers_url":"https://api.github.com/users/cherihung/followers","following_url":"https://api.github.com/users/cherihung/following{/other_user}","gists_url":"https://api.github.com/users/cherihung/gists{/gist_id}","starred_url":"https://api.github.com/users/cherihung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cherihung/subscriptions","organizations_url":"https://api.github.com/users/cherihung/orgs","repos_url":"https://api.github.com/users/cherihung/repos","events_url":"https://api.github.com/users/cherihung/events{/privacy}","received_events_url":"https://api.github.com/users/cherihung/received_events","type":"User","site_admin":false},"labels":[{"id":614161063,"node_id":"MDU6TGFiZWw2MTQxNjEwNjM=","url":"https://api.github.com/repos/emotion-js/emotion/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-09T07:30:06Z","updated_at":"2018-07-09T08:44:54Z","closed_at":null,"author_association":"NONE","body":"- `emotion` version: 9.1.2\r\n- `react` version: 16.3.1\r\n- `typescript` version: 2.8.1\r\n\r\nI am recently starting to work on a typescript react project using Emotion. Due to a constraint on an internal dependency, I can't use the new 9.2+ version. I tried to use `jest-emotion` and follow the README's instruction. \r\n\r\nIn setupTests.ts, I added:\r\n```javascript\r\nexpect.addSnapshotSerializer(createSerializer(emotion));\r\n```\r\nBut then I see this Typescript error `Property 'merge' is missing in type 'typeof import(\".../node_modules/emotion/types/index\")'.`\r\n\r\nAfter checking the type definition, Emotion 9.1.2 type file indeed doesn't have the `merge` property that jest-emotion's createSerializer expects (as defined by create-emotion). \r\n\r\nI am not able to find a previous version of `jest-emotion` that'd work with the older version of Emotion.\r\nSo my question is - should `jest-emotion` work with Emotion 9.1.2? Or is it a new feature only for 9.2.+? \r\n\r\nIf that's the case, what's the suggestion to do snapshot testing? \r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/emotion-js/emotion/issues/comments/403405586","html_url":"https://github.com/emotion-js/emotion/issues/758#issuecomment-403405586","issue_url":"https://api.github.com/repos/emotion-js/emotion/issues/758","id":403405586,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzQwNTU4Ng==","user":{"login":"mitchellhamilton","id":11481355,"node_id":"MDQ6VXNlcjExNDgxMzU1","avatar_url":"https://avatars1.githubusercontent.com/u/11481355?v=4","gravatar_id":"","url":"https://api.github.com/users/mitchellhamilton","html_url":"https://github.com/mitchellhamilton","followers_url":"https://api.github.com/users/mitchellhamilton/followers","following_url":"https://api.github.com/users/mitchellhamilton/following{/other_user}","gists_url":"https://api.github.com/users/mitchellhamilton/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchellhamilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchellhamilton/subscriptions","organizations_url":"https://api.github.com/users/mitchellhamilton/orgs","repos_url":"https://api.github.com/users/mitchellhamilton/repos","events_url":"https://api.github.com/users/mitchellhamilton/events{/privacy}","received_events_url":"https://api.github.com/users/mitchellhamilton/received_events","type":"User","site_admin":false},"created_at":"2018-07-09T08:44:54Z","updated_at":"2018-07-09T08:44:54Z","author_association":"MEMBER","body":"Does `jest-emotion@9.1.2` not work?"}}
{"actor":{"display_login":"mitchellhamilton"}}