mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
76c5b6f7bf
Summary: This PR is part of https://github.com/facebook/react-native/issues/34872 This PR extracts `IncorrectModuleRegistryCallArityParserError` exception to `throwIfIncorrectModuleRegistryCallArityParserError` inside an `error-utils.js` file. ## Changelog [Internal] [Changed] - Extracted IncorrectModuleRegistryCallArityParserError exception to throwIfIncorrectModuleRegistryCallArityParserError function Pull Request resolved: https://github.com/facebook/react-native/pull/34940 Test Plan: Added unit case in error-utils-test.js file yarn jest react-native-codegen <img width="1144" alt="Screenshot 2022-10-11 at 4 04 55 PM" src="https://user-images.githubusercontent.com/22423684/195070498-627d1bb8-53b1-43d3-b410-462e4f0da23a.png"> Reviewed By: dmytrorykun Differential Revision: D40296626 Pulled By: cipolleschi fbshipit-source-id: 33a299b1adf6334753c2390a81a54832c9096ec5
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.