UNPKG

cypress-plugin-snapshots

Version:
27 lines (24 loc) 665 B
// -- Example Usage: // -- cypress/tsconfig.json // { // "compilerOptions": { // "types": ["cypress", "cypress-plugin-snapshots"] // } // } declare namespace Cypress { interface Chainable<Subject = any> { toMatchSnapshot(options?: Partial<{ ignoreExtralFields: boolean, ignoreExtraArrayItems: boolean, normalizeJson: boolean, replace: any, name: string }>): Chainable<null>; toMatchImageSnapshot(options?: Partial<{ createDiffImage: boolean, threshold: number, thresholdType: "percent" | "pixels", name: string }> & Partial<ScreenshotDefaultsOptions>): Chainable<null>; } }