Closed Vorobeyko closed 4 years ago
@DudaGod HI! Can you merge this mr?
@Vorobeyko hello. Can you fix type for options here - https://github.com/gemini-testing/looks-same/blob/master/index.d.ts#L194?
And I will merge it. Thank you.
@DudaGod I did! Thats ok?
Yes. Thank you.
available at looks-same@7.2.3
My tools use lookSame and pass some parameters to this function. But sometimes the tools has bugs and passes to lookSame undefined opts, and I get error.
Because prepareOpts try to set value to
opts.tolerance
, but opts is undefined.My proposal using empty object by default.