Skip to content

Commit

Permalink
fix: correctly specify types for "mochaOpts" and "patternsOnReject"
Browse files Browse the repository at this point in the history
  • Loading branch information
DudaGod committed Nov 27, 2024
1 parent c3a362a commit 87b7351
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,23 +128,16 @@ 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<Mocha.MochaOptions, "ui"> {
ui?: string | ((suite: Mocha.Suite) => void);
}

export interface SystemConfig {
debug: boolean;
mochaOpts: MochaOpts;
expectOpts: ExpectOptsConfig;
ctx: { [name: string]: unknown };
patternsOnReject: Array<string>;
patternsOnReject: Array<string | RegExp>;
workers: number;
testsPerWorker: number;
diffColor: string;
Expand Down

0 comments on commit 87b7351

Please sign in to comment.