@lewiswright/vitest-plugin-vis
Version:
Vitest visual testing plugin
7 lines • 831 B
TypeScript
import type { BrowserCommandContext } from 'vitest/node';
import type { ImageSnapshotAnimationOptions, ImageSnapshotTimeoutOptions } from '../client.ts';
export declare function takeSnapshot(context: BrowserCommandContext, filePath: string, subject: string, options: (ImageSnapshotTimeoutOptions & ImageSnapshotAnimationOptions) | undefined): Promise<Buffer<ArrayBufferLike>>;
export declare function takeSnapshotByBrowser(context: BrowserCommandContext, filePath: string, subject: string, options: (ImageSnapshotTimeoutOptions & ImageSnapshotAnimationOptions) | undefined): Promise<Buffer<ArrayBufferLike>>;
export declare function writeSnapshot(filePath: string, subject: string): Promise<void>;
export declare function writeSnapshotBuffer(filePath: string, subject: Buffer): Promise<void>;
//# sourceMappingURL=snapshot.d.ts.map