Browse Source

Added recommendation to use shallow rendering or jest.mock()

main
Anna Do 7 years ago
parent
commit
b6e2f24421
  1. 2
      content/docs/addons-test-utils.md

2
content/docs/addons-test-utils.md

@ -114,7 +114,7 @@ Pass a mocked component module to this method to augment it with useful methods
> Note:
>
> `mockComponent()` is a legacy method that is no longer needed. A similar pattern can be implemented directly.
> `mockComponent()` is a legacy API. We recommend using [shallow rendering](/docs/test-utils.html#shallow-rendering) or [jest.mock()](https://facebook.github.io/jest/docs/en/tutorial-react-native.html#mock-native-modules-using-jestmock) instead.
* * *

Loading…
Cancel
Save