Skip to content

Only works with a shared instance of styled-components #125

Closed

Description

I work on a Lerna monorepo of component packages that contains multiple instances of styled-components and a global Jest setupTestFrameworkScriptFile. Unless each package lists styled-components as a part of peerDependencies, which will share an instance from the root node_modules, jest-styled-components won't work.

Tangentially related (fixes this warning): styled-components/styled-components#1592

I think, at the very least, this should be added as a warning to the "Global installation" section of the README.md. What do y'all think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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