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.
It's often necessary to wrap components to include things like global context providers, data stores, etc. It's also not uncommon for components to be reliant on "global" resource (such as fonts) to have been already loaded prior to taking a snapshot.
We should consider how we might extend the Sosia API to enable users to pass a React Component as a wrapper option to have it rendered around the inner element.
It's often necessary to wrap components to include things like global context providers, data stores, etc. It's also not uncommon for components to be reliant on "global" resource (such as fonts) to have been already loaded prior to taking a snapshot.
We should consider how we might extend the Sosia API to enable users to pass a React Component as a wrapper option to have it rendered around the inner element.
Other testing tools, such as React Testing Library use a similar approach.