Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extracted MoreThanOneModuleRegistryCallsParserError exception to thro…
…wIfMoreThanOneModuleRegistryCalls inside error-utils.js (#34921) Summary: This PR is part of #34872 This PR extracts MoreThanOneModuleRegistryCallsParserError exception to throwIfMoreThanOneModuleRegistryCalls inside an error-utils.js file ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [Internal] [Changed] - Extracted MoreThanOneModuleRegistryCallsParserError exception to throwIfMoreThanOneModuleRegistryCalls function Pull Request resolved: #34921 Test Plan: yarn jest react-native-codegen Added unit case in the `error-utils-test.js` file <img width="936" alt="Extracted MoreThanOneModuleRegistryCallsParserError Test" src="https://user-images.githubusercontent.com/86604753/194876724-8beec16d-4b88-4685-b8a7-a2c89208378a.png"> Reviewed By: NickGerleman Differential Revision: D40296527 Pulled By: cipolleschi fbshipit-source-id: 8c0d2854f42918b61ce8569cbfbaee5e90b21398
- Loading branch information
1 parent
c9338c4
commit ab22e3a
Showing
4 changed files
with
78 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters