mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
75b688fba8
Summary: Currently, it is not clear how to run codegen tests in the OSS. ## Changelog [General][Added] - Add instructions about how to add tests in the OSS Reviewed By: cortinico Differential Revision: D40020907 fbshipit-source-id: 073ec8bf08d2a9e8b26287763dd881371ecf561d
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 react-native-codegen.