Prior99 / jest-screenshot

A jest extension to deal with screenshots and all sorts of images.
MIT License
71 stars 21 forks source link

quick question about detectAntialiasing option #46

Open bboydflo opened 3 years ago

bboydflo commented 3 years ago

I am not sure I understand correctly this option. My goal is to get less flaky tests. That means if I won't set this (default value of it is true anyway) will ignore small changes?

Thanks

Prior99 commented 3 years ago

As seen in the image in the readme, fonts are often rendered using antialiasing. This makes the fonts look smoother, but can also make the tests flaky as it will look different across different environments. This feature enables the detection of antialiasing pixels and tries to exclude it from the test results.

On Tue, 12 Jan 2021, 10:43 Florin Cosmin, notifications@github.com wrote:

I am not sure I understand correctly this option. My goal is to get less flaky tests. That means if I won't set this (default value of it is true anyway) will ignore small changes?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Prior99/jest-screenshot/issues/46, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALME5TR353V3R7OBVCRRW3SZQKTVANCNFSM4V65STWQ .