From cc06e10d86c17a006db62dc771461c8a9fa6f3b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Wed, 28 Nov 2018 10:07:20 +0100 Subject: [PATCH] docs: add note about new APIs in v1.4 --- docs/api.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/api.md b/docs/api.md index 1aa3eecc3..b2db07e3d 100644 --- a/docs/api.md +++ b/docs/api.md @@ -59,10 +59,14 @@ A method returning an array of `ReactTestInstance`s with matching props object. ### `getByType: (type: React.ComponentType<*>)` +> Note: added in v1.4 + A method returning a `ReactTestInstance` with matching a React component type. Throws when no matches. ### `getAllByType: (type: React.ComponentType<*>)` +> Note: added in v1.4 + A method returning an array of `ReactTestInstance`s with matching a React component type. ### `[DEPRECATED] getByName: (name: React.ComponentType<*>)`