We are using jest-styled-components in a large codebase and it works perfectly.
However sometimes we would love to have more control over the snapshots generation.
This pr shows how a setStyleSheetSerializerOptions might be added which would allow:
generate snapshots with css
generate snapshots without css (but still format classNames from hashes to c0)
generate snapshots without css but still make use of toHaveStyleRule
allows to format the className e.g. styledComponent0 instead of c0
We are using
jest-styled-components
in a large codebase and it works perfectly.However sometimes we would love to have more control over the snapshots generation.
This pr shows how a
setStyleSheetSerializerOptions
might be added which would allow:toHaveStyleRule
styledComponent0
instead ofc0
Example usage:
I am very open to feedback and would love to know what you think