@lewiswright/storybook-addon-vis
Version:
Storybook Vitest visual testing addon
28 lines (25 loc) • 1.44 kB
TypeScript
import { ComparisonMethod, VisOptions } from 'vitest-plugin-vis/config';
export { trimCommonFolder } from 'vitest-plugin-vis/config';
import * as vitest_plugin_vis_commands from 'vitest-plugin-vis/commands';
import * as vitest_node from 'vitest/node';
import * as vite from 'vite';
import { Omit } from 'type-plus';
declare function storybookVis<M extends ComparisonMethod>(options?: Omit<VisOptions<M>, 'preset'> | undefined): {
name: string;
config(this: void, userConfig: vite.UserConfig): {
test: {
browser: {
name: string;
commands: {
setupVisSuite: vitest_node.BrowserCommand<[]>;
imageSnapshotNextIndex: vitest_node.BrowserCommand<[taskId: string]>;
hasImageSnapshot: vitest_node.BrowserCommand<[taskId: string, snapshotId: string | undefined, isAutoSnapshot: boolean]>;
matchImageSnapshot: vitest_node.BrowserCommand<[taskId: string, subject: string, isAutoSnapshot: boolean, options?: vitest_plugin_vis_commands.MatchImageSnapshotOptions | undefined]>;
prepareImageSnapshotComparison: vitest_node.BrowserCommand<[taskId: string, snapshotId: string, isAutoSnapshot: boolean, options?: vitest_plugin_vis_commands.MatchImageSnapshotOptions | undefined]>;
};
};
setupFiles: string[];
};
};
};
export { storybookVis };