Skip to content

Commit 9eda976

Browse files
committed
typings
1 parent 78a3ea1 commit 9eda976

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { RenderAPI } from '@testing-library/react-native';
2+
import { ReactTestInstance } from 'react-test-renderer';
3+
declare const ButtonDriverFactory: ({ wrapperComponent, testID }: {
4+
wrapperComponent: RenderAPI;
5+
testID: string;
6+
}) => Promise<{
7+
exists: () => boolean;
8+
getRootElement: () => ReactTestInstance | null;
9+
isClickable: () => boolean;
10+
click: () => void;
11+
getLabelRootElement: () => ReactTestInstance | null;
12+
isLabelExists: () => boolean;
13+
getLabelContent: () => any;
14+
getIconRootElement: () => ReactTestInstance | null;
15+
isIconExists: () => boolean;
16+
}>;
17+
export default ButtonDriverFactory;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { RenderAPI } from '@testing-library/react-native';
2+
import { ReactTestInstance } from 'react-test-renderer';
3+
declare const ImageDriverFactory: ({ wrapperComponent, testID }: {
4+
wrapperComponent: RenderAPI;
5+
testID: string;
6+
}) => Promise<{
7+
exists: () => boolean;
8+
getRootElement: () => ReactTestInstance | null;
9+
}>;
10+
export default ImageDriverFactory;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { RenderAPI } from '@testing-library/react-native';
2+
import { ReactTestInstance } from 'react-test-renderer';
3+
declare const TextDriverFactory: ({ wrapperComponent, testID }: {
4+
wrapperComponent: RenderAPI;
5+
testID: string;
6+
}) => Promise<{
7+
exists: () => boolean;
8+
getRootElement: () => ReactTestInstance | null;
9+
getTextContent: () => any;
10+
isClickable: () => boolean;
11+
click: () => void;
12+
}>;
13+
export default TextDriverFactory;

0 commit comments

Comments
 (0)