mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
1d8727966d
Summary: [Codegen 119] This PR introduces `emitBuildEventSchema` to parser commons and abstracts the logic out of typescript and parser events as requested on https://github.com/facebook/react-native/issues/34872 ## Changelog: [Internal] [Changed] - Add `emitBuildEventSchema` to parser commons and update usages. Pull Request resolved: https://github.com/facebook/react-native/pull/38810 Test Plan: Run `yarn jest react-native-codegen` locally and ensure CI is green ## Screenshot of test passing locally: <img width="1047" alt="Screenshot 2023-08-07 at 8 03 49 AM" src="https://github.com/facebook/react-native/assets/64726664/ab87f004-d9f8-4b5f-800b-0e724430301f"> Reviewed By: rshest Differential Revision: D48155051 Pulled By: cipolleschi fbshipit-source-id: a3db3f4783d60681b366a871b1d2ee32eb864bc0
@react-native/codegen
Installation
yarn add --dev @react-native/codegen
Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like
Testing
To run the tests in this package, run the following commands from the React Native root folder:
yarnto install the dependencies. You just need to run this onceyarn jest packages/react-native-codegen.