@lewiswright/vitest-plugin-vis
Version:
Vitest visual testing plugin
27 lines • 1.43 kB
TypeScript
import type { ComparisonMethod } from '../shared/types.ts';
import type { VisOptions } from './types.ts';
/**
* Create a Vite plugin for visual testing.
*
* If options are not provided, the plugin will use the default options,
* which enables the `auto` preset.
*/
export declare function vis<M extends ComparisonMethod = 'pixel'>(options?: VisOptions<M>): {
name: string;
config(this: void, userConfig: import("vite").UserConfig): {
test: {
browser: {
name: string;
commands: {
setupVisSuite: import("vitest/node").BrowserCommand<[]>;
imageSnapshotNextIndex: import("vitest/node").BrowserCommand<[taskId: string]>;
hasImageSnapshot: import("vitest/node").BrowserCommand<[taskId: string, snapshotId: string | undefined, isAutoSnapshot: boolean]>;
matchImageSnapshot: import("vitest/node").BrowserCommand<[taskId: string, subject: string, isAutoSnapshot: boolean, options?: import("../commands.ts").MatchImageSnapshotOptions | undefined]>;
prepareImageSnapshotComparison: import("vitest/node").BrowserCommand<[taskId: string, snapshotId: string, isAutoSnapshot: boolean, options?: import("../commands.ts").MatchImageSnapshotOptions | undefined]>;
};
};
setupFiles: string[];
};
};
};
//# sourceMappingURL=vis.d.ts.map