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
{{ message }}
Repository navigation
snapshots failing due to style prop differences #731
Heh that's indeed very weird... Also interesting to see that so many styles are different. Seems like justify-content: space-around; align-items: center; is constantly added for flex items for some reason... Maybe because it's ran for a second time in the same context?
Although, weirdly enough, running tests locally works. So it really looks like jest's snapshot renderer (or whoever's responsible for that) is stripping CSS attributes related to flexbox.
This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.
Activity
CompuIves commentedon Apr 17, 2018
Heh that's indeed very weird... Also interesting to see that so many styles are different. Seems like
justify-content: space-around; align-items: center;is constantly added for flex items for some reason... Maybe because it's ran for a second time in the same context?I'll do some debugging on this!
kentcdodds commentedon Apr 17, 2018
In the meantime I removed the use of the
styleprop in those components to side-step the issue :)lbogdan commentedon May 1, 2018
@kentcdodds @CompuIves
Seems like there's an issue with the snapshots? For example, for test no. 12, the snapshot is
but if I run it locally, go to
/12/finaland take a look at the html it's actuallyAlthough, weirdly enough, running tests locally works. So it really looks like jest's snapshot renderer (or whoever's responsible for that) is stripping CSS attributes related to flexbox.
github-actions commentedon Sep 4, 2020
This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.
github-actions commentedon Oct 1, 2020
This issue has been automatically closed because there wasn't any activity after the previous notice or the stale label wasn't removed.