This repository was archived by the owner on Jul 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,9 @@ export declare class NativeTestEvent {
32
32
33
33
export type FireFunction = ( element : NativeTestInstance , event : NativeTestEvent ) => boolean ;
34
34
export type FireObject = {
35
- [ K in EventType ] : ( element : NativeTestInstance , options ?: { } ) => boolean
35
+ [ K in EventType ] : ( element : NativeTestInstance , options ?: { } ) => boolean ;
36
36
} ;
37
37
38
38
export const getEventHandlerName : ( key : string ) => string ;
39
39
export const fireEvent : FireFunction & FireObject ;
40
+ export const asyncFireEvent : Promise < FireFunction & FireObject > ;
Original file line number Diff line number Diff line change @@ -47,9 +47,19 @@ export function render<Q extends Queries>(
47
47
options : RenderOptions < Q > ,
48
48
) : RenderResult < Q > ;
49
49
50
+ export function asyncRender (
51
+ ui : ReactElement < any > ,
52
+ options ?: Omit < RenderOptions , 'queries' > ,
53
+ ) : Promise < RenderResult > ;
54
+ export function asyncRender < Q extends Queries > (
55
+ ui : ReactElement < any > ,
56
+ options : RenderOptions < Q > ,
57
+ ) : Promise < RenderResult < Q > > ;
58
+
50
59
export const cleanup : ( ) => void ;
51
60
52
61
export const act : ( callback : ( ) => void ) => void ;
62
+ export function act ( callback : ( ) => Promise < void | undefined > ) : Promise < undefined > ;
53
63
54
64
export { queries , queryHelpers , within } ;
55
65
export * from './to-json' ;
You can’t perform that action at this time.
0 commit comments