From ad70a5bc23076e603517d6a4c577de72bdbb7605 Mon Sep 17 00:00:00 2001 From: Filipe Guerra Date: Wed, 3 Oct 2018 11:42:43 -0700 Subject: [PATCH] fix ReactTestIntance type typing (#29335) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tested with the following code: ``` component.root.find( node => node.type === MyButton && node.props.type === ‘submit’ ) ``` --- types/react-test-renderer/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-test-renderer/index.d.ts b/types/react-test-renderer/index.d.ts index 834664c11d..c147d5c190 100644 --- a/types/react-test-renderer/index.d.ts +++ b/types/react-test-renderer/index.d.ts @@ -25,7 +25,7 @@ export interface ReactTestRendererTree extends ReactTestRendererJSON { } export interface ReactTestInstance { instance: any; - type: string; + type: ReactType; props: { [propName: string]: any }; parent: null | ReactTestInstance; children: Array;