-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
toMatchImageSnapshot & typescript [doubt] #253
Labels
Comments
This issue is stale because it has been open 30 days with no activity. |
remove |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: