Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
toMatchDiffSnapshot(
valueA,
valueB,
options = {},
testName
) {
const difference = snapshotDiff(valueA, valueB, { ...defaults, ...options });
return snapshot.toMatchSnapshot.call(this, difference, testName);
},
});
function toMatchDiffSnapshot(
valueA: any,
valueB: any,
options?: Options,
testName?: string
) {
const difference = snapshotDiff(valueA, valueB, options);
return snapshot.toMatchSnapshot.call(this, difference, testName);
}