@storybook/addon-storyshots
Version:
Take a code snapshot of every story automatically with Jest
12 lines (11 loc) • 871 B
TypeScript
import 'jest-specific-snapshot';
import type { StoryshotsTestMethod, TestMethodOptions, StoryshotsOptions } from './api/StoryshotsOptions';
type SnapshotsWithOptionsArgType = Pick<StoryshotsOptions, 'renderer' | 'serializer'> | Function;
type SnapshotsWithOptionsReturnType = (options: Pick<TestMethodOptions, 'story' | 'context' | 'renderTree' | 'snapshotFileName'>) => any;
export declare function snapshotWithOptions(options?: SnapshotsWithOptionsArgType): SnapshotsWithOptionsReturnType;
export declare function multiSnapshotWithOptions(options?: SnapshotsWithOptionsArgType): StoryshotsTestMethod;
export declare const shallowSnapshot: StoryshotsTestMethod;
export declare function renderWithOptions(options?: {}): StoryshotsTestMethod;
export declare const renderOnly: StoryshotsTestMethod;
export declare const snapshot: SnapshotsWithOptionsReturnType;
export {};