@emotion/jest Styles added through the css
prop to a styled component are not captured in snapshots
#3178
Labels
css
prop to a styled component are not captured in snapshots
#3178
Current behavior:
The styles added with the
css
prop to astyled
component are not captured in Snapshots when using@emotion/jest
, but are applied as expected in the appTo reproduce:
The below code produces the following snapshot (note the lack of the color orange and height 50 styles in the snapshot):
css
propcss
prop in the snapshotExpected behavior:
The styles should reflect the actual render on the web, and include the styles that are added through the css prop on styled components
Environment information:
"react": "^18.2.0",
"@emotion/jest": "^11.11.0"
"@emotion/react": "^11.11.1",
The text was updated successfully, but these errors were encountered: