Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

cipolleschi
Copy link
Contributor

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

  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.

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Sep 5, 2022
@facebook-github-bot
Copy link
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@cipolleschi cipolleschi changed the title fix: make codegen test run work [RN][OSS] Make react-native-codegen tests run in OSS Sep 5, 2022
@analysis-bot
Copy link

analysis-bot commented Sep 5, 2022

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: a50e6fb
Branch: main

@facebook-github-bot
Copy link
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,637,035 -894
android hermes armeabi-v7a 7,049,022 -906
android hermes x86 7,939,007 -884
android hermes x86_64 7,911,029 -892
android jsc arm64-v8a 9,513,218 -530
android jsc armeabi-v7a 8,288,504 -541
android jsc x86 9,452,778 -509
android jsc x86_64 10,044,007 -531

Base commit: a50e6fb
Branch: main

@facebook-github-bot
Copy link
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @cipolleschi in 00458c9.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Sep 6, 2022
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants