You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd love to ignore some attributes when a component is serialized, for the purpose of keeping its snapshot focused and not cluttered with stuff like inline styles
@dziamid Your comments are welcome in a conversation about a potential general solution to matching a subset of attributes/properties at jestjs/jest#2202 (comment)
Hi @dziamid, that's interesting but it's not really a bug with enzyme-to-json but a bug with Jest snapshots and how pretty-format processes them! Thanks for the link @pedrottimark
I'd love to ignore some attributes when a component is serialized, for the purpose of keeping its snapshot focused and not cluttered with stuff like inline styles
For example:
Would serialize into:
While i'd prefer:
The text was updated successfully, but these errors were encountered: