jest-styled-components icon indicating copy to clipboard operation
jest-styled-components copied to clipboard

proper serialization of css prop

Open havenchyk opened this issue 5 years ago • 1 comments

It's mostly a question.

I use jest-styled-components with @testing-library/react and snapshots are looking really cool, but I didn't find a way to serialize css prop of styled-components in snapshots, so it looks ugly with css='...' in snapshots as well.

Is it possible at all to have serialized css somehow better like it's done for classes?

havenchyk avatar Nov 05 '19 18:11 havenchyk

Interesting, I do not get the css prop styles in the snapshot at all on styled components: #250

fabb avatar Jan 12 '20 08:01 fabb