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'm adding this as a bug rather than a feature request as this behaviour has changed when upgrading to the latest beta version of stitches. Previously jest-stitches would collate all the relevant classes and render them in the snapshot but would not include the :root pseudo-class containing the stitches theme, I think this is the correct behaviour as :root level custom properties are not specific to the component.
To Reproduce
Create a generic styled component from stitches alongside a test using jest-stitches
Describe the bug
I'm adding this as a bug rather than a feature request as this behaviour has changed when upgrading to the latest beta version of stitches. Previously
jest-stitches
would collate all the relevant classes and render them in the snapshot but would not include the:root
pseudo-class containing the stitches theme, I think this is the correct behaviour as:root
level custom properties are not specific to the component.To Reproduce
Create a generic
styled
component from stitches alongside a test usingjest-stitches
jest.config.js
Expected behavior
Expect to see relevant classes from
styled
component andcss
, but not document level:root
class.Additional context
Package versions
Let me know if you need any additional context or detail with the issue, thanks!
The text was updated successfully, but these errors were encountered: