Hi! I´m using the custom config to catch my snapshot but also I´m trying to move mi project to Typescript and I cannot solve the next problem.
"Cannot assign to 'toMatchImageSnapshot' because it is not a variable."
and the part of my code something like...
import {toMatchImageSnapshot, configureToMatchImageSnapshot} from "jest-image-snapshot";
Hi! I´m using the custom config to catch my snapshot but also I´m trying to move mi project to Typescript and I cannot solve the next problem. "Cannot assign to 'toMatchImageSnapshot' because it is not a variable." and the part of my code something like... import {toMatchImageSnapshot, configureToMatchImageSnapshot} from "jest-image-snapshot";
const customConfig = { threshold: 0.5}; toMatchImageSnapshot = configureToMatchImageSnapshot({ customDiffConfig: customConfig, noColors: true, failureThreshold: 0.01, failureThresholdType: 'percent', customSnapshotsDir: "./__image_snapshots__/"+deviceName, }); expect.extend({ toMatchImageSnapshot });
Someone has any idea to solve? THX