= tree.queryAllByText(
'View'
);
diff --git a/typings/index.d.ts b/typings/index.d.ts
index bc3ab1f04..d1ce52fda 100644
--- a/typings/index.d.ts
+++ b/typings/index.d.ts
@@ -3,24 +3,26 @@ import { ReactTestInstance, ReactTestRendererJSON } from 'react-test-renderer';
export interface GetByAPI {
getByName: (name: React.ReactType) => ReactTestInstance;
- getByType: (type: React.ComponentType) => ReactTestInstance;
+ getByType: (type: React.ComponentType
) => ReactTestInstance;
getByText: (text: string | RegExp) => ReactTestInstance;
getByProps: (props: Record) => ReactTestInstance;
getByTestId: (testID: string) => ReactTestInstance;
getAllByName: (name: React.ReactType) => Array;
- getAllByType: (type: React.ComponentType) => Array;
+ getAllByType: (type: React.ComponentType
) => Array;
getAllByText: (text: string | RegExp) => Array;
getAllByProps: (props: Record) => Array;
}
export interface QueryByAPI {
queryByName: (name: React.ReactType) => ReactTestInstance | null;
- queryByType: (type: React.ComponentType) => ReactTestInstance | null;
+ queryByType: (type: React.ComponentType
) => ReactTestInstance | null;
queryByText: (name: string | RegExp) => ReactTestInstance | null;
queryByProps: (props: Record) => ReactTestInstance | null;
queryByTestId: (testID: string) => ReactTestInstance | null;
queryAllByName: (name: React.ReactType) => Array | [];
- queryAllByType: (type: React.ComponentType) => Array | [];
+ queryAllByType: (
+ type: React.ComponentType
+ ) => Array | [];
queryAllByText: (text: string | RegExp) => Array | [];
queryAllByProps: (
props: Record