@stryker-mutator/mocha-runner
Version:
A plugin to use the mocha test runner in Stryker, the JavaScript mutation testing framework
17 lines • 710 B
TypeScript
import Mocha, { type RootHookObject } from 'mocha';
import { MochaOptions } from '../src-generated/mocha-runner-options.js';
/**
* Wraps Mocha class and require for testability
*/
export declare class LibWrapper {
static Mocha: typeof Mocha;
static require: NodeJS.Require;
static loadOptions: (argv?: string[] | string) => Record<string, any> | undefined;
static collectFiles: ((options: MochaOptions) => string[] | {
files: string[];
unmatchedFiles: string[];
}) | undefined;
static handleRequires: (requires?: string[]) => Promise<RootHookObject>;
static loadRootHooks: ((rootHooks: any) => Promise<any>) | undefined;
}
//# sourceMappingURL=lib-wrapper.d.ts.map