Patch Changes
-
8a88e771
#1880 Thanks @Jimmydalecleveland! - Improved stability of the generated snapshots - styles are extracted now based on the order in which the associated with them class names appear in the serialized elements rather than based on the order of the actual rules in the document. -
ae8c1d9d
#1902 Thanks @Andarist! - Added support for handling regular React elements (objects returned fromReact.createElement
) in the serializer andtoHaveStyleRule
matcher. It's possible to get those elements when traversing Enzyme's trees.