unmock-core
Version:
[][npmjs] [](https://circleci.com/gh/unmock/unmock-js) [](h
26 lines • 907 B
TypeScript
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