@@ -2,70 +2,70 @@ import { ReactTestRenderer } from 'react-test-renderer';
2
2
3
3
import { Matcher , MatcherOptions } from './matches' ;
4
4
import { WaitForElementOptions } from './wait-for-element' ;
5
- import { SelectorMatcherOptions } from './query-helpers' ;
5
+ import { NativeTestInstance , SelectorMatcherOptions } from './query-helpers' ;
6
6
7
7
export type QueryByBoundProp = (
8
8
testRenderer : ReactTestRenderer ,
9
9
id : Matcher ,
10
10
options ?: MatcherOptions ,
11
- ) => ReactTestRenderer | null ;
11
+ ) => NativeTestInstance | null ;
12
12
13
13
export type AllByBoundProp = (
14
14
testRenderer : ReactTestRenderer ,
15
15
id : Matcher ,
16
16
options ?: MatcherOptions ,
17
- ) => ReactTestRenderer [ ] ;
17
+ ) => NativeTestInstance [ ] ;
18
18
19
19
export type FindAllByBoundProp = (
20
20
testRenderer : ReactTestRenderer ,
21
21
id : Matcher ,
22
22
options ?: MatcherOptions ,
23
- ) => Promise < ReactTestRenderer [ ] > ;
23
+ ) => Promise < NativeTestInstance [ ] > ;
24
24
25
25
export type GetByBoundProp = (
26
26
testRenderer : ReactTestRenderer ,
27
27
id : Matcher ,
28
28
options ?: MatcherOptions ,
29
- ) => ReactTestRenderer ;
29
+ ) => NativeTestInstance ;
30
30
31
31
export type FindByBoundProp = (
32
32
testRenderer : ReactTestRenderer ,
33
33
id : Matcher ,
34
34
options ?: MatcherOptions ,
35
35
waitForElementOptions ?: WaitForElementOptions ,
36
- ) => Promise < ReactTestRenderer > ;
36
+ ) => Promise < NativeTestInstance > ;
37
37
38
38
export type QueryByText = (
39
39
testRenderer : ReactTestRenderer ,
40
40
id : Matcher ,
41
41
options ?: SelectorMatcherOptions ,
42
- ) => ReactTestRenderer | null ;
42
+ ) => NativeTestInstance | null ;
43
43
44
44
export type AllByText = (
45
45
testRenderer : ReactTestRenderer ,
46
46
id : Matcher ,
47
47
options ?: SelectorMatcherOptions ,
48
- ) => ReactTestRenderer [ ] ;
48
+ ) => NativeTestInstance [ ] ;
49
49
50
50
export type FindAllByText = (
51
51
testRenderer : ReactTestRenderer ,
52
52
id : Matcher ,
53
53
options ?: MatcherOptions ,
54
54
waitForElementOptions ?: WaitForElementOptions ,
55
- ) => Promise < ReactTestRenderer [ ] > ;
55
+ ) => Promise < NativeTestInstance [ ] > ;
56
56
57
57
export type GetByText = (
58
58
testRenderer : ReactTestRenderer ,
59
59
id : Matcher ,
60
60
options ?: WaitForElementOptions ,
61
- ) => ReactTestRenderer ;
61
+ ) => NativeTestInstance ;
62
62
63
63
export type FindByText = (
64
64
testRenderer : ReactTestRenderer ,
65
65
id : Matcher ,
66
66
options ?: MatcherOptions ,
67
67
waitForElementOptions ?: WaitForElementOptions ,
68
- ) => Promise < ReactTestRenderer > ;
68
+ ) => Promise < NativeTestInstance > ;
69
69
70
70
export const getByHintText : GetByBoundProp ;
71
71
export const getByLabelText : GetByBoundProp ;
0 commit comments