jest-bench
Version:
Run benchmark with Jest
16 lines (15 loc) • 631 B
TypeScript
import { BaseReporter } from "@jest/reporters";
import type { Config } from "@jest/types";
import type { AggregatedResult, ReporterOnStartOptions } from "@jest/reporters";
export interface Options {
withOpsPerSecond?: boolean;
}
export default class BenchmarkReporter extends BaseReporter {
protected _globalConfig: Config.GlobalConfig;
protected _rootDir: string;
protected _options: Options;
constructor(globalConfig: Config.GlobalConfig, options?: Options);
onRunStart(results: AggregatedResult, options: ReporterOnStartOptions): void;
get resultFile(): string;
onRunComplete(): Promise<void>;
}