UNPKG

@lewiswright/vitest-plugin-vis

Version:
58 lines 3.04 kB
export declare const visContext: { setOptions<M extends "pixel" | "ssim">(projectName: string | undefined, options?: import("../config.ts").VisOptions<M>): void; __test__getOptions(projectName: string): import("../config.ts").VisOptions<any> | undefined; __test__reset(): void; __test__getState(context: import("./vis_context.types.ts").PartialBrowserCommandContext): Promise<import("./vis_context.types.ts").VisProjectState>; setupSuite(browserContext: import("./vis_context.types.ts").PartialBrowserCommandContext): Promise<import("type-plus").Pick._<import("./vis_context.types.ts").VisProjectState, "subjectDataTestId">>; getSnapshotInfo(browserContext: import("./vis_context.types.ts").PartialBrowserCommandContext, name: string, isAutoSnapshot: boolean, options?: { snapshotFileId?: string | undefined; }): Promise<{ baselinePath: string; resultPath: string; diffPath: string; timeout?: number | undefined | undefined; animations?: boolean | undefined | undefined; failureThresholdType?: "pixel" | "percent" | undefined | undefined; failureThreshold?: number | undefined | undefined; comparisonMethod: any; diffOptions?: Partial<import("ssim.js").Options> | undefined; } | { baselinePath: string; resultPath: string; diffPath: string; timeout?: number | undefined | undefined; animations?: boolean | undefined | undefined; failureThresholdType?: "pixel" | "percent" | undefined | undefined; failureThreshold?: number | undefined | undefined; comparisonMethod?: any; diffOptions?: { threshold?: number | undefined; includeAA?: boolean | undefined; alpha?: number | undefined; aaColor?: [number, number, number] | undefined; diffColor?: [number, number, number] | undefined; diffColorAlt?: [number, number, number] | undefined; diffMask?: boolean | undefined; } | undefined; }>; getTaskCount(browserContext: import("./vis_context.types.ts").PartialBrowserCommandContext, taskId: string): Promise<number>; hasImageSnapshot(browserContext: import("./vis_context.types.ts").PartialBrowserCommandContext, taskId: string, snapshotFileId: string | undefined, isAutoSnapshot: boolean): Promise<boolean>; getSnapshotFilename(browserContext: import("./vis_context.types.ts").PartialBrowserCommandContext, info: { taskId: string; task: { count: number; }; }, snapshotFileId: string | undefined, isAutoSnapshot: boolean): string; getSuiteInfo(browserContext: import("./vis_context.types.ts").PartialBrowserCommandContext, taskId: string): Promise<{ projectRoot: string; suiteId: string; taskId: string; baselineDir: string; resultDir: string; diffDir: string; task: { count: number; }; }>; }; //# sourceMappingURL=vis_context.d.ts.map