{"action":"created","issue":{"url":"https://api.github.com/repos/styled-components/jest-styled-components/issues/124","repository_url":"https://api.github.com/repos/styled-components/jest-styled-components","labels_url":"https://api.github.com/repos/styled-components/jest-styled-components/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/styled-components/jest-styled-components/issues/124/comments","events_url":"https://api.github.com/repos/styled-components/jest-styled-components/issues/124/events","html_url":"https://github.com/styled-components/jest-styled-components/pull/124","id":304001347,"number":124,"title":"Fix #98","user":{"login":"kevcenteno","id":1154185,"avatar_url":"https://avatars1.githubusercontent.com/u/1154185?v=4","gravatar_id":"","url":"https://api.github.com/users/kevcenteno","html_url":"https://github.com/kevcenteno","followers_url":"https://api.github.com/users/kevcenteno/followers","following_url":"https://api.github.com/users/kevcenteno/following{/other_user}","gists_url":"https://api.github.com/users/kevcenteno/gists{/gist_id}","starred_url":"https://api.github.com/users/kevcenteno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevcenteno/subscriptions","organizations_url":"https://api.github.com/users/kevcenteno/orgs","repos_url":"https://api.github.com/users/kevcenteno/repos","events_url":"https://api.github.com/users/kevcenteno/events{/privacy}","received_events_url":"https://api.github.com/users/kevcenteno/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-09T22:30:57Z","updated_at":"2018-03-10T18:39:36Z","closed_at":"2018-03-10T18:39:36Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/styled-components/jest-styled-components/pulls/124","html_url":"https://github.com/styled-components/jest-styled-components/pull/124","diff_url":"https://github.com/styled-components/jest-styled-components/pull/124.diff","patch_url":"https://github.com/styled-components/jest-styled-components/pull/124.patch"},"body":"Fixes #98"},"comment":{"url":"https://api.github.com/repos/styled-components/jest-styled-components/issues/comments/372053828","html_url":"https://github.com/styled-components/jest-styled-components/pull/124#issuecomment-372053828","issue_url":"https://api.github.com/repos/styled-components/jest-styled-components/issues/124","id":372053828,"user":{"login":"MicheleBertoli","id":1308971,"avatar_url":"https://avatars2.githubusercontent.com/u/1308971?v=4","gravatar_id":"","url":"https://api.github.com/users/MicheleBertoli","html_url":"https://github.com/MicheleBertoli","followers_url":"https://api.github.com/users/MicheleBertoli/followers","following_url":"https://api.github.com/users/MicheleBertoli/following{/other_user}","gists_url":"https://api.github.com/users/MicheleBertoli/gists{/gist_id}","starred_url":"https://api.github.com/users/MicheleBertoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MicheleBertoli/subscriptions","organizations_url":"https://api.github.com/users/MicheleBertoli/orgs","repos_url":"https://api.github.com/users/MicheleBertoli/repos","events_url":"https://api.github.com/users/MicheleBertoli/events{/privacy}","received_events_url":"https://api.github.com/users/MicheleBertoli/received_events","type":"User","site_admin":false},"created_at":"2018-03-10T18:39:36Z","updated_at":"2018-03-10T18:39:36Z","author_association":"MEMBER","body":"Thank you very much @kevcenteno for your PR.\r\nI confirm this solves a subset of the problem: the case where the test has the space `(max-width: 640px)` and [stylis](https://github.com/thysultan/stylis.js) removes it `(max-width:640px)`.\r\n\r\nHowever, it fails on the opposite scenario:\r\n\r\n```js\r\ntoHaveStyleRule(<Wrapper />, 'color', 'green', {\r\n  media: '(max-width:640px)',\r\n})\r\n```\r\n\r\nAnd it doesn't support `@supports`.\r\n\r\nIt would be awesome if we could find a more solid solution (e.g. given any input, we should get the same output of the styled-components' [stringifyRules](https://github.com/styled-components/styled-components/blob/master/src/utils/stringifyRules.js))."}}
{"actor":{"display_login":"MicheleBertoli"}}