-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
[RN][OSS] Make react-native-codegen tests run in OSS #34594
Conversation
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Base commit: a50e6fb |
092fe5b
to
5e12496
Compare
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Base commit: a50e6fb |
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
This pull request was successfully merged by @cipolleschi in 00458c9. When will my fix make it into a release? | Upcoming Releases |
Summary: During the CoreContributor summit, we discovered that the `react-native-codegen` tests cannot be executed in the OSS due to this [issue with Jest](jestjs/jest#2567). This PR moves the required variables inside the proper closure so that we can run tests in the OSS. ## Changelog [General] [Fixed] - Enable the `react-native-codegen` tests in the OSS. Pull Request resolved: facebook#34594 Test Plan: 1. Run `yarn install` in the `react-native-codegen` folder. 2. Run `yarn jest`, see the test fail. 3. Apply the changes in this diff. 4. Run `yarn jest`, see the test pass. Reviewed By: cortinico Differential Revision: D39259164 Pulled By: cipolleschi fbshipit-source-id: 7c4c0a7baa3c9b5e90a7ef75a37a0ec9d1b89db0
Summary
During the CoreContributor summit, we discovered that the
react-native-codegen
tests cannot be executed in the OSS due to this issue with Jest.This PR moves the required variables inside the proper closure so that we can run tests in the OSS.
Changelog
[General] [Fixed] - Enable the
react-native-codegen
tests in the OSS.Test Plan
yarn install
in thereact-native-codegen
folder.yarn jest
, see the test fail.yarn jest
, see the test pass.