UNPKG

vitest-plugin-vis

Version:
33 lines (32 loc) 1.26 kB
import { n as ComparisonMethod, o as ImageSnapshotKeyOptions, v as ToMatchPageImageSnapshotOptions } from "./types-CEmjj-A9.mjs"; import { t as ImageSnapshotMatcher } from "./to_match_image_snapshot.types--tTmHoRA.mjs"; import "vitest"; import { BrowserPage } from "vitest/browser"; import "vitest/suite"; //#region src/client/expect/augment.d.ts declare global { namespace jest { interface Matchers<R, T> extends ImageSnapshotMatcher {} } } //# sourceMappingURL=augment.d.ts.map //#endregion //#region src/client/page/has_image_snapshot.d.ts interface HasImageSnapshotAction { /** * Check if the snapshot image exists. */ hasImageSnapshot(this: BrowserPage, options?: ImageSnapshotKeyOptions | undefined): Promise<boolean>; } //#endregion //#region src/client/page/to_match_image_snapshot.d.ts interface ToMatchImageSnapshotAction { toMatchImageSnapshot<M extends ComparisonMethod = 'pixel'>(options?: ToMatchPageImageSnapshotOptions<M> | undefined): Promise<void>; } //#endregion //#region src/client/page/augment.d.ts declare module '@vitest/browser/context' { interface BrowserPage extends HasImageSnapshotAction, ToMatchImageSnapshotAction {} } //# sourceMappingURL=augment.d.ts.map //# sourceMappingURL=augment-C1tjdh5B.d.mts.map