Better yet: instead of using jest.mock, pass the component you wish to mock as a prop to the component under test and give it the default value of the actual component implementation. While testing, pass the mocked component as a prop to the component under test. Dependency injection is usually better than under the hood mocking.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Better yet: instead of using jest.mock, pass the component you wish to mock as a prop to the component under test and give it the default value of the actual component implementation. While testing, pass the mocked component as a prop to the component under test. Dependency injection is usually better than under the hood mocking.