UNPKG

@stryker-mutator/mocha-runner

Version:

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

18 lines 691 B
import { Logger } from '@stryker-mutator/api/logging'; import { RootHookObject } from 'mocha'; import { MochaOptions } from '../src-generated/mocha-runner-options.js'; /** * A class that contains polyfills for different versions of mocha. * Tries to mimic the functionality of mocha's latest api. * * Currently supports mocha < 6 */ export declare class MochaAdapter { private readonly log; static readonly inject: ["logger"]; constructor(log: Logger); create(options: Mocha.MochaOptions): Mocha; collectFiles(options: MochaOptions): string[]; handleRequires(requires: string[]): Promise<RootHookObject | undefined>; } //# sourceMappingURL=mocha-adapter.d.ts.map