UNPKG

playwright-performance-reporter

Version:

Measure and publish performance metrics from browser dev-tools when running playwright

39 lines (38 loc) 939 B
import { type PresenterWriter, type ResultAccumulator } from '../../types/index.js'; import { type JsonChunkPresenterOptions } from './types.js'; /** * Write JSON chunks in an array of entries */ export declare class JsonChunkPresenter implements PresenterWriter { /** * Locator where to store the output */ private readonly filePath; /** * Status whether writer is usable */ private isClosed; /** * File writer */ private readonly fileStream; /** * JSON chunk writer */ private readonly jsonStream; constructor(options: JsonChunkPresenterOptions); /** * Create new entry of an object, that is serializable. * * @param content */ write(content: ResultAccumulator): Promise<boolean>; /** * Finish json stream */ close(): Promise<boolean>; /** * Delete created file */ delete(): Promise<boolean>; }