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
My tests are running in node, so isServer is returning true, but new ServerStyleSheet().getStyleTags() is returning an empty string. However if I force it to instead use sheet.toString() everything works as expected and my tests pass/fail as expected.
The text was updated successfully, but these errors were encountered:
I would hate to have to fork this project just to make that change tho.
Would love some help or pointed in the right direction to determine why isServer() is true but new ServerStyleSheet().getStyleTags() returns an empty string, even tho sheet.toString() works as expected.
I keep getting:
I have been able to trace it to this line:
jest-styled-components/src/utils.js
Line 25 in 4b07fde
My tests are running in node, so
isServer
is returning true, butnew ServerStyleSheet().getStyleTags()
is returning an empty string. However if I force it to instead usesheet.toString()
everything works as expected and my tests pass/fail as expected.The text was updated successfully, but these errors were encountered: