UNPKG

earljs

Version:

Ergonomic, modern and type-safe assertion library

15 lines (14 loc) 389 B
export declare type UpdateSnapshotMode = 'all' | 'new' | 'none'; export declare type CompareSnapshot = (options: { actual: any; updateSnapshotMode: UpdateSnapshotMode; snapshotFilePath: string; name: string; }) => SnapshotComparisonResult; export declare type SnapshotComparisonResult = { success: true; } | { success: false; actual: any; expected: any; };