You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered: