UNPKG

creevey

Version:

Cross-browser screenshot testing tool for Storybook with fancy UI Runner

14 lines (13 loc) 592 B
import type { ServerTest, Config } from '../types'; export declare let storybookApi: null | typeof import('./storybook/entry'); export declare function loadTestsFromStories(config: Config, browsers: string[], { watch, debug, update, }: { watch?: boolean; debug?: boolean; update?: (testsDiff: Partial<{ [id: string]: ServerTest; }>) => void; }): Promise<Partial<{ [id: string]: ServerTest; }>>; export declare function saveStoriesJson(extract: string | boolean): void; export declare function saveTestsJson(tests: Record<string, unknown>, dstPath?: string): void;