From 2255e1efed752e849c0a2fb2533a178bef7dd821 Mon Sep 17 00:00:00 2001 From: Anna Do Date: Mon, 9 Oct 2017 19:11:04 -0400 Subject: [PATCH] Added a note that mockComponent is legacy and unnecessary --- content/docs/addons-test-utils.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/docs/addons-test-utils.md b/content/docs/addons-test-utils.md index fc482e19..3e43023f 100644 --- a/content/docs/addons-test-utils.md +++ b/content/docs/addons-test-utils.md @@ -112,6 +112,10 @@ mockComponent( Pass a mocked component module to this method to augment it with useful methods that allow it to be used as a dummy React component. Instead of rendering as usual, the component will become a simple `
` (or other tag if `mockTagName` is provided) containing any provided children. +> Note: +> +> `mockComponent()` is a legacy method that is no longer needed. A similar method can be implemented directly. + * * * ### `isElement()`