-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[codegen] Fixes enum codegen value cases #44654
Conversation
Thanks for the fix! Could you add unit test or make sure this scenario is captured in a snapshot? |
Base commit: e0a2e86 |
@@ -3,6 +3,9 @@ | |||
<PROJECT_ROOT>/packages/react-native/template/.* | |||
<PROJECT_ROOT>/packages/react-native/sdks/.* | |||
|
|||
; Ignore the codegen e2e tests | |||
<PROJECT_ROOT>/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeEnumTurboModule.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flow check failed https://app.circleci.com/pipelines/github/facebook/react-native/46812/workflows/f35b38a2-172b-4f7c-b041-57b63ca9692e/jobs/1524067. Seems // $FlowFixMe
not work for SyntaxError.
@javache Thanks for the review. I added the snapshot test. |
…/fix_enum_codegen
@cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@cortinico merged this pull request in 1a1795a. |
This pull request was successfully merged by @zhongwuzw in 1a1795a. When will my fix make it into a release? | How to file a pick request? |
Summary: Fixes facebook#44632 ## Changelog: [GENERAL] [FIXED] - [codegen] Fixes enum codegen value cases Pull Request resolved: facebook#44654 Test Plan: facebook#44632 Reviewed By: cipolleschi, dmytrorykun Differential Revision: D58135645 Pulled By: cortinico fbshipit-source-id: 5c0634ef1d1d7375d2ecfcf7f916d67fd39b7300
Summary:
Fixes #44632
Changelog:
[GENERAL] [FIXED] - [codegen] Fixes enum codegen value cases
Test Plan:
#44632