Skip to content

Commit b6e2f24

Browse files
committed
Added recommendation to use shallow rendering or jest.mock()
1 parent 592c383 commit b6e2f24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/addons-test-utils.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Pass a mocked component module to this method to augment it with useful methods
114114

115115
> Note:
116116
>
117-
> `mockComponent()` is a legacy method that is no longer needed. A similar pattern can be implemented directly.
117+
> `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.
118118
119119
* * *
120120

0 commit comments

Comments
 (0)