UNPKG

674 BTypeScriptView Raw
1/// <reference types="node" />
2import Mocha from 'mocha';
3import { MochaOptions } from '../src-generated/mocha-runner-options.js';
4/**
5 * Wraps Mocha class and require for testability
6 */
7export declare class LibWrapper {
8 static Mocha: typeof Mocha;
9 static require: NodeRequire;
10 static loadOptions: (argv?: string | string[] | undefined) => Record<string, any> | undefined;
11 static collectFiles: ((options: MochaOptions) => string[]) | undefined;
12 static handleRequires: (requires?: string[] | undefined) => Promise<Mocha.RootHookObject>;
13 static loadRootHooks: ((rootHooks: any) => Promise<any>) | undefined;
14}
15//# sourceMappingURL=lib-wrapper.d.ts.map
\No newline at end of file