mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: A few fixings to make `yarn jest react-native-doegen` works on Windows: - ~~Add a `.gitignore` file to tell git not to track generated/temporary files.~~ - There is no `rm` on Windows, change it to `rimraf`. I have been using it in the last 3 months and it works perfectly on Windows, otherwise I could not even build the code in my laptop. ## Changelog [General] [Changed] - Make `yarn` and `yarn jest react-native-codegen` works on Windows with git Pull Request resolved: https://github.com/facebook/react-native/pull/34854 Test Plan: `yarn jest react-native-codegen` passed Reviewed By: cortinico Differential Revision: D40059524 Pulled By: cortinico fbshipit-source-id: e3cde2506c7d18c2b580099257637b90f4cb328c
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.