1import Mocha = require("mocha"); 2 3export = FailedTestsReporter; 4 5declare class FailedTestsReporter extends Mocha.reporters.Base { 6 passes: Mocha.Test[]; 7 failures: Mocha.Test[]; 8 reporterOptions: FailedTestsReporter.ReporterOptions; 9 reporter?: Mocha.reporters.Base; 10 constructor(runner: Mocha.Runner, options?: { reporterOptions?: FailedTestsReporter.ReporterOptions }); 11 static writeFailures(file: string, passes: readonly Mocha.Test[], failures: readonly Mocha.Test[], keepFailed: boolean, done: (err?: NodeJS.ErrnoException) => void): void; 12 done(failures: number, fn?: (failures: number) => void): void; 13} 14 15declare namespace FailedTestsReporter { 16 interface ReporterOptions { 17 file?: string; 18 keepFailed?: boolean; 19 reporter?: string | Mocha.ReporterConstructor; 20 reporterOptions?: any; 21 } 22} 23