UNPKG

@stryker-mutator/mocha-runner

Version:

A plugin to use the mocha test runner in Stryker, the JavaScript mutation testing framework

15 lines 699 B
/// <reference types="node" resolution-mode="require"/> import Mocha 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: NodeRequire; static loadOptions: (argv?: string | string[] | undefined) => Record<string, any> | undefined; static collectFiles: ((options: MochaOptions) => string[]) | undefined; static handleRequires: (requires?: string[] | undefined) => Promise<Mocha.RootHookObject>; static loadRootHooks: ((rootHooks: any) => Promise<any>) | undefined; } //# sourceMappingURL=lib-wrapper.d.ts.map