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