2018-06-12 00:08:15 +02:00
|
|
|
import Mocha = require("mocha");
|
|
|
|
|
|
|
|
export = FailedTestsReporter;
|
|
|
|
|
|
|
|
declare class FailedTestsReporter extends Mocha.reporters.Base {
|
|
|
|
passes: Mocha.Test[];
|
|
|
|
failures: Mocha.Test[];
|
|
|
|
reporterOptions: FailedTestsReporter.ReporterOptions;
|
|
|
|
reporter?: Mocha.reporters.Base;
|
|
|
|
constructor(runner: Mocha.Runner, options?: { reporterOptions?: FailedTestsReporter.ReporterOptions });
|
2019-08-08 20:30:18 +02:00
|
|
|
static writeFailures(file: string, passes: readonly Mocha.Test[], failures: readonly Mocha.Test[], keepFailed: boolean, done: (err?: NodeJS.ErrnoException) => void): void;
|
2018-06-12 00:08:15 +02:00
|
|
|
done(failures: number, fn?: (failures: number) => void): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare namespace FailedTestsReporter {
|
|
|
|
interface ReporterOptions {
|
|
|
|
file?: string;
|
|
|
|
keepFailed?: boolean;
|
|
|
|
reporter?: string | Mocha.ReporterConstructor;
|
|
|
|
reporterOptions?: any;
|
|
|
|
}
|
2019-06-27 11:29:32 +02:00
|
|
|
}
|