@@ -286,16 +286,16 @@ interface EachFunctionReturn<T extends any[]> {
286286 (
287287 name : string | Function ,
288288 fn : ( ...args : T ) => Awaitable < void > ,
289- options : TestOptions
289+ options : TestCollectorOptions
290290 ) : void
291291 (
292292 name : string | Function ,
293293 fn : ( ...args : T ) => Awaitable < void > ,
294- options ?: number | TestOptions
294+ options ?: number | TestCollectorOptions
295295 ) : void
296296 (
297297 name : string | Function ,
298- options : TestOptions ,
298+ options : TestCollectorOptions ,
299299 fn : ( ...args : T ) => Awaitable < void >
300300 ) : void
301301}
@@ -316,7 +316,7 @@ interface TestForFunctionReturn<Arg, Context> {
316316 ) : void
317317 (
318318 name : string | Function ,
319- options : TestOptions ,
319+ options : TestCollectorOptions ,
320320 fn : ( args : Arg , context : Context ) => Awaitable < void >
321321 ) : void
322322}
@@ -347,16 +347,16 @@ interface TestCollectorCallable<C = object> {
347347 < ExtraContext extends C > (
348348 name : string | Function ,
349349 fn : TestFunction < ExtraContext > ,
350- options : TestOptions
350+ options : TestCollectorOptions
351351 ) : void
352352 < ExtraContext extends C > (
353353 name : string | Function ,
354354 fn ?: TestFunction < ExtraContext > ,
355- options ?: number | TestOptions
355+ options ?: number | TestCollectorOptions
356356 ) : void
357357 < ExtraContext extends C > (
358358 name : string | Function ,
359- options ?: TestOptions ,
359+ options ?: TestCollectorOptions ,
360360 fn ?: TestFunction < ExtraContext >
361361 ) : void
362362}
@@ -370,6 +370,8 @@ type ChainableTestAPI<ExtraContext = object> = ChainableFunction<
370370 }
371371>
372372
373+ type TestCollectorOptions = Omit < TestOptions , 'shuffle' >
374+
373375export interface TestOptions {
374376 /**
375377 * Test timeout.
@@ -399,6 +401,10 @@ export interface TestOptions {
399401 * Tests inherit `sequential` from `describe()` and nested `describe()` will inherit from parent's `sequential`.
400402 */
401403 sequential ?: boolean
404+ /**
405+ * Whether the tasks of the suite run in a random order.
406+ */
407+ shuffle ?: boolean
402408 /**
403409 * Whether the test should be skipped.
404410 */
0 commit comments