@@ -195,58 +195,58 @@ declare module 'node:test' {
195195 * The `it()` function is imported from the `node:test` module.
196196 * @since v18.6.0, v16.17.0
197197 */
198- function it ( name ?: string , options ?: TestOptions , fn ?: TestFn ) : void ;
199- function it ( name ?: string , fn ?: TestFn ) : void ;
200- function it ( options ?: TestOptions , fn ?: TestFn ) : void ;
201- function it ( fn ?: TestFn ) : void ;
198+ function it ( name ?: string , options ?: TestOptions , fn ?: TestFn ) : Promise < void > ;
199+ function it ( name ?: string , fn ?: TestFn ) : Promise < void > ;
200+ function it ( options ?: TestOptions , fn ?: TestFn ) : Promise < void > ;
201+ function it ( fn ?: TestFn ) : Promise < void > ;
202202 namespace it {
203203 /**
204204 * Shorthand for skipping a test, same as `it([name], { skip: true }[, fn])`.
205205 */
206- function skip ( name ?: string , options ?: TestOptions , fn ?: TestFn ) : void ;
207- function skip ( name ?: string , fn ?: TestFn ) : void ;
208- function skip ( options ?: TestOptions , fn ?: TestFn ) : void ;
209- function skip ( fn ?: TestFn ) : void ;
206+ function skip ( name ?: string , options ?: TestOptions , fn ?: TestFn ) : Promise < void > ;
207+ function skip ( name ?: string , fn ?: TestFn ) : Promise < void > ;
208+ function skip ( options ?: TestOptions , fn ?: TestFn ) : Promise < void > ;
209+ function skip ( fn ?: TestFn ) : Promise < void > ;
210210 /**
211211 * Shorthand for marking a test as `TODO`, same as `it([name], { todo: true }[, fn])`.
212212 */
213- function todo ( name ?: string , options ?: TestOptions , fn ?: TestFn ) : void ;
214- function todo ( name ?: string , fn ?: TestFn ) : void ;
215- function todo ( options ?: TestOptions , fn ?: TestFn ) : void ;
216- function todo ( fn ?: TestFn ) : void ;
213+ function todo ( name ?: string , options ?: TestOptions , fn ?: TestFn ) : Promise < void > ;
214+ function todo ( name ?: string , fn ?: TestFn ) : Promise < void > ;
215+ function todo ( options ?: TestOptions , fn ?: TestFn ) : Promise < void > ;
216+ function todo ( fn ?: TestFn ) : Promise < void > ;
217217 /**
218218 * Shorthand for marking a test as `only`, same as `it([name], { only: true }[, fn])`.
219219 * @since v18.15.0
220220 */
221- function only ( name ?: string , options ?: TestOptions , fn ?: TestFn ) : void ;
222- function only ( name ?: string , fn ?: TestFn ) : void ;
223- function only ( options ?: TestOptions , fn ?: TestFn ) : void ;
224- function only ( fn ?: TestFn ) : void ;
221+ function only ( name ?: string , options ?: TestOptions , fn ?: TestFn ) : Promise < void > ;
222+ function only ( name ?: string , fn ?: TestFn ) : Promise < void > ;
223+ function only ( options ?: TestOptions , fn ?: TestFn ) : Promise < void > ;
224+ function only ( fn ?: TestFn ) : Promise < void > ;
225225 }
226226 /**
227227 * Shorthand for skipping a test, same as `test([name], { skip: true }[, fn])`.
228228 * @since v20.2.0
229229 */
230- function skip ( name ?: string , options ?: TestOptions , fn ?: TestFn ) : void ;
231- function skip ( name ?: string , fn ?: TestFn ) : void ;
232- function skip ( options ?: TestOptions , fn ?: TestFn ) : void ;
233- function skip ( fn ?: TestFn ) : void ;
230+ function skip ( name ?: string , options ?: TestOptions , fn ?: TestFn ) : Promise < void > ;
231+ function skip ( name ?: string , fn ?: TestFn ) : Promise < void > ;
232+ function skip ( options ?: TestOptions , fn ?: TestFn ) : Promise < void > ;
233+ function skip ( fn ?: TestFn ) : Promise < void > ;
234234 /**
235235 * Shorthand for marking a test as `TODO`, same as `test([name], { todo: true }[, fn])`.
236236 * @since v20.2.0
237237 */
238- function todo ( name ?: string , options ?: TestOptions , fn ?: TestFn ) : void ;
239- function todo ( name ?: string , fn ?: TestFn ) : void ;
240- function todo ( options ?: TestOptions , fn ?: TestFn ) : void ;
241- function todo ( fn ?: TestFn ) : void ;
238+ function todo ( name ?: string , options ?: TestOptions , fn ?: TestFn ) : Promise < void > ;
239+ function todo ( name ?: string , fn ?: TestFn ) : Promise < void > ;
240+ function todo ( options ?: TestOptions , fn ?: TestFn ) : Promise < void > ;
241+ function todo ( fn ?: TestFn ) : Promise < void > ;
242242 /**
243243 * Shorthand for marking a test as `only`, same as `test([name], { only: true }[, fn])`.
244244 * @since v20.2.0
245245 */
246- function only ( name ?: string , options ?: TestOptions , fn ?: TestFn ) : void ;
247- function only ( name ?: string , fn ?: TestFn ) : void ;
248- function only ( options ?: TestOptions , fn ?: TestFn ) : void ;
249- function only ( fn ?: TestFn ) : void ;
246+ function only ( name ?: string , options ?: TestOptions , fn ?: TestFn ) : Promise < void > ;
247+ function only ( name ?: string , fn ?: TestFn ) : Promise < void > ;
248+ function only ( options ?: TestOptions , fn ?: TestFn ) : Promise < void > ;
249+ function only ( fn ?: TestFn ) : Promise < void > ;
250250 /**
251251 * The type of a function under test. The first argument to this function is a
252252 * {@link TestContext} object. If the test uses callbacks, the callback function is passed as
0 commit comments