Skip to content

[0.80] Add a custom Jest resolver to opt out from handling "exports" in tests #940

@j-piasecki

Description

@j-piasecki

Target Branch

0.80

Link to commit or PR to be picked

facebook/react-native#51307

Description

D72228547 added the exports field to the main react-native package, in which all imports from ./src/* are explicitly disallowed. This was expected to be a breaking change and to limit the surface area of it, this diff will allow using all imports in jest tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type

    Projects

    Status

    Done / Picked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions