UNPKG

stryker-mocha-runner

Version:

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

22 lines 814 B
import { Logger } from 'stryker-api/logging'; import { TestRunner, RunResult } from 'stryker-api/test_runner'; import { StrykerOptions } from 'stryker-api/core'; export default class MochaTestRunner implements TestRunner { private readonly log; private readonly allFileNames; private testFileNames; private readonly mochaRunnerOptions; static inject: ["logger", "sandboxFileNames", "options"]; constructor(log: Logger, allFileNames: ReadonlyArray<string>, options: StrykerOptions); init(): void; private mochaFileGlobPatterns; run({ testHooks }: { testHooks?: string; }): Promise<RunResult>; private purgeFiles; private addFiles; private addTestHooks; private configure; private additionalRequires; } //# sourceMappingURL=MochaTestRunner.d.ts.map