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
jest-styled-components uses global.beforeEach to reset stylesheets which means in situations where you don't want to remount a component for every test case for whatever reason, you cannot use beforeAll to load it.
Is there a reason jest-styled-components needs to reset stylesheets in beforeEach? If so, is there a reason not to fire it in beforeAll as well?
The text was updated successfully, but these errors were encountered:
This is probably more a question than an issue...
jest-styled-components uses global.beforeEach to reset stylesheets which means in situations where you don't want to remount a component for every test case for whatever reason, you cannot use beforeAll to load it.
Is there a reason jest-styled-components needs to reset stylesheets in beforeEach? If so, is there a reason not to fire it in beforeAll as well?
The text was updated successfully, but these errors were encountered: