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
{{ message }}
This repository was archived by the owner on Oct 25, 2023. It is now read-only.
If we intend to support multiple sources for generating visual regression examples (markdown source, jest source, mdx source etc), we probably also need a plugin model to tackle cross cutting concerns.
For example, emotion builds up a global state of styles in document when calling css and injectGlobal that doesn't get reset between states. The Recipe project current wraps the markdown source to reset emotion's global state between test runs to ensure styles don't leak across tests, however this wrapper would be broadly applicable to any type of component source that provided emotion styled components. We should consider making plugins to support this kind of utility.
If we intend to support multiple sources for generating visual regression examples (markdown source, jest source, mdx source etc), we probably also need a plugin model to tackle cross cutting concerns.
For example, emotion builds up a global state of styles in
documentwhen callingcssandinjectGlobalthat doesn't get reset between states. The Recipe project current wraps the markdown source to reset emotion's global state between test runs to ensure styles don't leak across tests, however this wrapper would be broadly applicable to any type of component source that provided emotion styled components. We should consider making plugins to support this kind of utility.