From b6e2f24421e2ef99da3a017081c50b69d8c02455 Mon Sep 17 00:00:00 2001 From: Anna Do Date: Tue, 10 Oct 2017 13:42:07 -0400 Subject: [PATCH] Added recommendation to use shallow rendering or jest.mock() --- content/docs/addons-test-utils.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/addons-test-utils.md b/content/docs/addons-test-utils.md index 7552a1d9..cabf7bc3 100644 --- a/content/docs/addons-test-utils.md +++ b/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. * * *