UNPKG

unmock-core

Version:

[![npm](https://img.shields.io/npm/v/unmock-core.svg)][npmjs] [![CircleCI](https://circleci.com/gh/unmock/unmock-js.svg?style=svg)](https://circleci.com/gh/unmock/unmock-js) [![codecov](https://codecov.io/gh/unmock/unmock-js/branch/dev/graph/badge.svg)](h

26 lines 907 B
import { IListenerInput } from "../../interfaces"; export interface ISnapshot { timestamp: Date; testPath: string; currentTestName: string; data: IListenerInput; } export interface ISnapshotWriterReader { write(snapshot: ISnapshot): void; read(): ISnapshot[]; deleteSnapshots(): void; } export declare const format: (snapshot: ISnapshot) => string; export declare const parseSnapshot: (str: string) => ISnapshot; export declare class FsSnapshotWriterReader implements ISnapshotWriterReader { private readonly snapshotFolder; static readFileContents(filename: string): ISnapshot[]; private readonly outputFolder; private readonly outputFile; constructor(snapshotFolder: string); write(snapshot: ISnapshot): void; findSnapshotFiles(): string[]; read(): ISnapshot[]; deleteSnapshots(): void; } //# sourceMappingURL=snapshot-writer-reader.d.ts.map