creevey
Version:
creevey is a tool for automated visual testing, that tightly integrated with storybook
8 lines (7 loc) • 396 B
TypeScript
/// <reference types="node" />
/// <reference types="chai" />
import { DiffOptions } from './types';
export default function (getExpected: (imageName?: string) => Promise<{
expected: Buffer | null;
onCompare: (actual: Buffer, expect?: Buffer, diff?: Buffer) => Promise<void>;
} | Buffer | null>, diffOptions: DiffOptions): ({ Assertion }: Chai.ChaiStatic, utils: Chai.ChaiUtils) => void;