americanexpress / jest-image-snapshot

✨ Jest matcher for image comparisons. Most commonly used for visual regression testing.
Apache License 2.0
3.81k stars 197 forks source link

[Feature Request]: would it be possible to make the inline image diff size configurable? #314

Open dvag-sebastian-goeb opened 1 year ago

dvag-sebastian-goeb commented 1 year ago

Currently width=40 is hardcoded into the inline image diff escape code. Would it be possible to make this configurable? I'm working with full-page screenshots, which might be 1024px wide, or more. The diff has 3 copies, so that is 3072px shown in the space of 40 character cells, which is tiny. A configuration option would be nice, so I could make that bigger, or even rely in iTerm2's auto setting.