jest-extended icon indicating copy to clipboard operation
jest-extended copied to clipboard

[Feauture]: Add geo matchers (toBeGeoLatitude, toBeGeoLongitude)

Open verdecchia opened this issue 2 years ago • 0 comments

Feature Request

Description:

Add geo matchers:

  • toBeGeoLatitude
  • toBeGeoLongitude

I've been using jest and jest-extended for long. Few months ago I needed to make geographic assertions to a project I was working on but I didn't found anything already done so I wrote some custom code in my project and later refactored and open sourced to a library (https://www.npmjs.com/package/check-geographic-coordinates).

Other developers finded it useful and used it, some of them gave to me some feedbacks in how to improve it, but I was missing the most important one, the jest assertion syntax integration. So I decided to look at jest-exteded more in deep, not as the user I was, but as a developer and I made this feature request. Looking backward I think I would used it directly with jest-extended.

Possible solution:

#538

verdecchia avatar Dec 21 '22 15:12 verdecchia