cypress-plugin-snapshots
Version:
Cypress snapshot functionality for data
27 lines (24 loc) • 665 B
TypeScript
// -- 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>;
}
}