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 have a project I'm using Rebass with and wanted to switch over to Theme UI since it seems to have picked up where Rebass left off, but I'm running into trouble with tests being theme-aware. It might be due to my setup, but it could be an issue with Emotion 11 vs 10.
Check out the tests (next to the browser tab on the right) in this Codesandbox I made and you'll see that Theme UI and Emotion 11 both fail, but Emotion 10 passes with the same theme object. They all use the same code except for the ThemeProvider used to wrap the tests in /utils.
Has anyone had success testing styles with the latest version of Theme UI or Emotion 11?
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 have a project I'm using Rebass with and wanted to switch over to Theme UI since it seems to have picked up where Rebass left off, but I'm running into trouble with tests being theme-aware. It might be due to my setup, but it could be an issue with Emotion 11 vs 10.
Check out the tests (next to the browser tab on the right) in this Codesandbox I made and you'll see that Theme UI and Emotion 11 both fail, but Emotion 10 passes with the same theme object. They all use the same code except for the
ThemeProvider
used to wrap the tests in /utils.Has anyone had success testing styles with the latest version of Theme UI or Emotion 11?
Beta Was this translation helpful? Give feedback.
All reactions