@@ -171,21 +171,21 @@ declare module 'node:test' {
171171 * The `it()` function is imported from the `node:test` module.
172172 * @since v18.6.0, v16.17.0
173173 */
174- function it ( name ?: string , options ?: TestOptions , fn ?: ItFn ) : void ;
175- function it ( name ?: string , fn ?: ItFn ) : void ;
176- function it ( options ?: TestOptions , fn ?: ItFn ) : void ;
177- function it ( fn ?: ItFn ) : void ;
174+ function it ( name ?: string , options ?: TestOptions , fn ?: TestFn ) : void ;
175+ function it ( name ?: string , fn ?: TestFn ) : void ;
176+ function it ( options ?: TestOptions , fn ?: TestFn ) : void ;
177+ function it ( fn ?: TestFn ) : void ;
178178 namespace it {
179179 // Shorthand for skipping a test, same as `it([name], { skip: true }[, fn])`.
180- function skip ( name ?: string , options ?: TestOptions , fn ?: ItFn ) : void ;
181- function skip ( name ?: string , fn ?: ItFn ) : void ;
182- function skip ( options ?: TestOptions , fn ?: ItFn ) : void ;
183- function skip ( fn ?: ItFn ) : void ;
180+ function skip ( name ?: string , options ?: TestOptions , fn ?: TestFn ) : void ;
181+ function skip ( name ?: string , fn ?: TestFn ) : void ;
182+ function skip ( options ?: TestOptions , fn ?: TestFn ) : void ;
183+ function skip ( fn ?: TestFn ) : void ;
184184 // Shorthand for marking a test as `TODO`, same as `it([name], { todo: true }[, fn])`.
185- function todo ( name ?: string , options ?: TestOptions , fn ?: ItFn ) : void ;
186- function todo ( name ?: string , fn ?: ItFn ) : void ;
187- function todo ( options ?: TestOptions , fn ?: ItFn ) : void ;
188- function todo ( fn ?: ItFn ) : void ;
185+ function todo ( name ?: string , options ?: TestOptions , fn ?: TestFn ) : void ;
186+ function todo ( name ?: string , fn ?: TestFn ) : void ;
187+ function todo ( options ?: TestOptions , fn ?: TestFn ) : void ;
188+ function todo ( fn ?: TestFn ) : void ;
189189 }
190190 /**
191191 * The type of a function under test. The first argument to this function is a
@@ -198,11 +198,6 @@ declare module 'node:test' {
198198 * If the test uses callbacks, the callback function is passed as an argument
199199 */
200200 type SuiteFn = ( done : ( result ?: any ) => void ) => void ;
201- /**
202- * The type of a function under test.
203- * If the test uses callbacks, the callback function is passed as an argument
204- */
205- type ItFn = ( done : ( result ?: any ) => void ) => any ;
206201 interface RunOptions {
207202 /**
208203 * If a number is provided, then that many files would run in parallel.
0 commit comments