From 87b73511c5fe49dd217a8b7b192a3e8ca1f31daa Mon Sep 17 00:00:00 2001 From: DudaGod Date: Wed, 27 Nov 2024 12:56:31 +0300 Subject: [PATCH] fix: correctly specify types for "mochaOpts" and "patternsOnReject" --- src/config/types.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/config/types.ts b/src/config/types.ts index 248ef1173..56c9962f8 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -128,15 +128,8 @@ export interface ExpectOptsConfig { interval: number; } -export interface MochaOpts { - /** milliseconds to wait before considering a test slow. */ - slow?: number; - - /** timeout in milliseconds or time string like '1s'. */ - timeout?: number; - - /** string or regexp to filter tests with. */ - grep?: string | RegExp; +export interface MochaOpts extends Omit { + ui?: string | ((suite: Mocha.Suite) => void); } export interface SystemConfig { @@ -144,7 +137,7 @@ export interface SystemConfig { mochaOpts: MochaOpts; expectOpts: ExpectOptsConfig; ctx: { [name: string]: unknown }; - patternsOnReject: Array; + patternsOnReject: Array; workers: number; testsPerWorker: number; diffColor: string;