UNPKG

jest-bench

Version:
16 lines (15 loc) 631 B
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>; }