@storybook/addon-storyshots
Version:
Take a code snapshot of every story automatically with Jest
17 lines (16 loc) • 563 B
TypeScript
export interface Stories2SnapsConverterOptions {
storiesExtensions: string[];
snapshotExtension: string;
snapshotsDirName: string;
}
export declare class Stories2SnapsConverter {
options: Stories2SnapsConverterOptions;
constructor(options?: Partial<Stories2SnapsConverterOptions>);
getSnapshotExtension: () => string;
getStoryshotFile(fileName: string): string;
getSnapshotFileName(context: {
fileName?: string;
kind: any;
}): string | undefined;
getPossibleStoriesFiles(storyshotFile: string): string[];
}