Skip to content

Commit

Permalink
fix: ability to specify "mochaOpts.ui" as function
Browse files Browse the repository at this point in the history
  • Loading branch information
DudaGod committed Dec 3, 2024
1 parent 5e6d1a8 commit b813ff7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { BrowserConfig } from "./browser-config";
import type { BrowserTestRunEnvOptions } from "../runner/browser-env/vite/types";
import type { Suite, Test } from "../types";
import type { Test } from "../types";
import type { ChildProcessWithoutNullStreams } from "child_process";
import { RequestOptions } from "https";

Expand Down Expand Up @@ -215,7 +215,7 @@ export interface MochaOpts {
isWorker?: boolean;

/** Interface name or path to file with custom interface implementation. */
ui?: string | Suite;
ui?: string | ((suite: unknown) => void);
}

export interface SystemConfig {
Expand Down

0 comments on commit b813ff7

Please sign in to comment.