-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly mock all components by setting the displayName
Summary: In the next react sync we removed the `displayName` from forwardRef and useMemo components ([PR here](facebook/react#18495 )). This means we need to manually add the displayName in the mock. Changelog: [General] [Fixed] Fix test renderer mocks to use the displayName more often. Reviewed By: TheSavior Differential Revision: D22775470 fbshipit-source-id: 1390dc325e34f7ccea32bbdf1c6a8f6efea3a080
- Loading branch information
1 parent
7af3f6e
commit 4b935ae
Showing
3 changed files
with
16 additions
and
16 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