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

23 lines 998 B
import { IListener, IListenerInput } from "../../interfaces"; import { ISnapshot, ISnapshotWriterReader } from "./snapshot-writer-reader"; export interface IFsSnapshotterOptions { outputFolder: string; } export declare const DEFAULT_SNAPSHOT_DIRECTORY: string; export { ISnapshot }; export declare const resolveOptions: (userOptions: Partial<IFsSnapshotterOptions>) => IFsSnapshotterOptions; export default class FsSnapshotter implements IListener { static getOrUpdateSnapshotter(newOptions?: Partial<IFsSnapshotterOptions>): FsSnapshotter; static extendExpectIfInJest(writer: ISnapshotWriterReader): void; static reset(): void; static removeExtendExpect(): void; private static instance?; private writer; private constructor(); static readonly runningInJest: boolean; readSnapshots(): ISnapshot[]; deleteSnapshots(): void; update(newOptions: IFsSnapshotterOptions): void; notify(input: IListenerInput): any; } //# sourceMappingURL=index.d.ts.map