Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Support component wrapper #44

@CraigCav

Description

@CraigCav

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions