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

added toBeAround() matcher

Open stephanvermeire opened this issue 3 years ago • 2 comments

What

added toBeAround() matcher

Why

Because it is very useful in many cases.

Notes

Housekeeping

  • [X] Unit tests
  • [ ] Documentation is up to date
  • [X] No additional lint warnings
  • [X] Typescript definitions are added/updated where relevant

stephanvermeire avatar Jan 29 '21 21:01 stephanvermeire

You may want to check out https://jestjs.io/docs/expect#tobeclosetonumber-numdigits

mimshwright avatar Mar 28 '21 20:03 mimshwright

Yeah, isn't this covered by toBeCloseTo from core?

SimenB avatar Oct 06 '21 11:10 SimenB