Skip to content

Commit 58c1811

Browse files
committed
fix: ability to specify "mochaOpts.ui" as function
1 parent 5e6d1a8 commit 58c1811

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/config/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { BrowserConfig } from "./browser-config";
22
import type { BrowserTestRunEnvOptions } from "../runner/browser-env/vite/types";
3-
import type { Suite, Test } from "../types";
3+
import type { Test } from "../types";
44
import type { ChildProcessWithoutNullStreams } from "child_process";
55
import { RequestOptions } from "https";
66

@@ -215,7 +215,7 @@ export interface MochaOpts {
215215
isWorker?: boolean;
216216

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

221221
export interface SystemConfig {

0 commit comments

Comments
 (0)