chai-snapshots
Version:
Snapshot generator and matcher for chai
15 lines (14 loc) • 371 B
TypeScript
export declare type ChaiSnapshotsOptions = {
pathToSnaps?: string;
ignoredAttributes?: Array<string>;
devMode?: boolean;
};
export declare const SnapshotMatchers: (options?: ChaiSnapshotsOptions) => (chai: any) => void;
declare global {
module Chai {
interface Assertion {
matchSnapshotJSON(): Assertion;
}
}
}
export {};