@@ -80,14 +80,14 @@ export interface TestEachFn {
8080 cases : readonly T [ ] ,
8181 ) : (
8282 description : string ,
83- fn : ( ...args : [ ...T ] ) => MaybePromise < void > ,
83+ fn ? : ( ...args : [ ...T ] ) => MaybePromise < void > ,
8484 options ?: number | TestOptions ,
8585 ) => void ;
8686 < T > (
8787 cases : readonly T [ ] ,
8888 ) : (
8989 description : string ,
90- fn : ( ...args : T [ ] ) => MaybePromise < void > ,
90+ fn ? : ( ...args : T [ ] ) => MaybePromise < void > ,
9191 options ?: number | TestOptions ,
9292 ) => void ;
9393 < T extends Record < string , unknown > > (
@@ -124,10 +124,13 @@ export interface DescribeEachFn {
124124 ) : ( description : string , fn ?: ( param : T ) => MaybePromise < void > ) => void ;
125125 < T extends readonly [ unknown , ...unknown [ ] ] > (
126126 cases : readonly T [ ] ,
127- ) : ( description : string , fn : ( ...args : [ ...T ] ) => MaybePromise < void > ) => void ;
127+ ) : (
128+ description : string ,
129+ fn ?: ( ...args : [ ...T ] ) => MaybePromise < void > ,
130+ ) => void ;
128131 < T > (
129132 cases : readonly T [ ] ,
130- ) : ( description : string , fn : ( param : T ) => MaybePromise < void > ) => void ;
133+ ) : ( description : string , fn ? : ( param : T ) => MaybePromise < void > ) => void ;
131134 < T extends Record < string , unknown > > (
132135 strings : TemplateStringsArray ,
133136 ...expressions : unknown [ ]
@@ -157,7 +160,7 @@ export type TestAPI<ExtraContext = object> = TestFn<ExtraContext> & {
157160 skipIf : ( condition : boolean ) => TestAPI < ExtraContext > ;
158161} ;
159162
160- type DescribeFn = ( description : string , fn ?: ( ) => void ) => void ;
163+ type DescribeFn = ( description : string , fn ?: ( ) => MaybePromise < void > ) => void ;
161164
162165export type DescribeAPI = DescribeFn & {
163166 each : DescribeEachFn ;
0 commit comments