-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Add a custom Jest resolver to opt out from handling "exports" in tests #51307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This pull request was exported from Phabricator. Differential Revision: D74708701 |
141086a
to
552eeab
Compare
facebook#51307) Summary: Changelog: [General][Added] Added a custom Jest resolver to opt out from handling "exports" in tests Reviewed By: huntie Differential Revision: D74708701
facebook#51307) Summary: 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. Changelog: [General][Added] Added a custom Jest resolver to opt out from handling "exports" in tests Reviewed By: huntie Differential Revision: D74708701
552eeab
to
fb02e85
Compare
This pull request was exported from Phabricator. Differential Revision: D74708701 |
facebook#51307) Summary: Pull Request resolved: facebook#51307 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. Changelog: [General][Added] Added a custom Jest resolver to opt out from handling "exports" in tests Reviewed By: huntie Differential Revision: D74708701
This pull request was exported from Phabricator. Differential Revision: D74708701 |
fb02e85
to
5ad134d
Compare
This pull request has been merged in ee9bd85. |
This pull request was successfully merged by @j-piasecki in ee9bd85 When will my fix make it into a release? | How to file a pick request? |
#51307) Summary: Pull Request resolved: #51307 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. Changelog: [General][Added] Added a custom Jest resolver to opt out from handling "exports" in tests Reviewed By: huntie Differential Revision: D74708701 fbshipit-source-id: 9a2714f4e6f78ffbad9e56b5bb92657c9ea908ef
This pull request was successfully merged by @j-piasecki in 7749879 When will my fix make it into a release? | How to file a pick request? |
Summary: D72228547 added the
exports
field to the mainreact-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.Changelog: [General][Added] Added a custom Jest resolver to opt out from handling "exports" in tests
Differential Revision: D74708701