UNPKG

871 BTypeScriptView Raw
1import 'jest-specific-snapshot';
2import type { StoryshotsTestMethod, TestMethodOptions, StoryshotsOptions } from './api/StoryshotsOptions';
3type SnapshotsWithOptionsArgType = Pick<StoryshotsOptions, 'renderer' | 'serializer'> | Function;
4type SnapshotsWithOptionsReturnType = (options: Pick<TestMethodOptions, 'story' | 'context' | 'renderTree' | 'snapshotFileName'>) => any;
5export declare function snapshotWithOptions(options?: SnapshotsWithOptionsArgType): SnapshotsWithOptionsReturnType;
6export declare function multiSnapshotWithOptions(options?: SnapshotsWithOptionsArgType): StoryshotsTestMethod;
7export declare const shallowSnapshot: StoryshotsTestMethod;
8export declare function renderWithOptions(options?: {}): StoryshotsTestMethod;
9export declare const renderOnly: StoryshotsTestMethod;
10export declare const snapshot: SnapshotsWithOptionsReturnType;
11export {};