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
Differences:
- 'transform' should be [object Object], but is [object Object]
I believe that this is because findStyleDiff in jestUtils does not cater for the array nature of the transform and the related objects.
Is there a work around anybody has or is this a case of a new feature request?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've just started testing with Jest and while toHaveAnimatedStyle is a good test it does not seem to cater for the transform property.
At present my test runs with the following error message:
Expected: {"transform":[{"scale":1.1}]}
Received: {"transform":[{"scale":1.1}]}
Differences:
- 'transform' should be [object Object], but is [object Object]
I believe that this is because findStyleDiff in jestUtils does not cater for the array nature of the transform and the related objects.
Is there a work around anybody has or is this a case of a new feature request?
Beta Was this translation helpful? Give feedback.
All reactions