jest-extended
jest-extended copied to clipboard
added toBeAround() matcher
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
You may want to check out https://jestjs.io/docs/expect#tobeclosetonumber-numdigits
Yeah, isn't this covered by toBeCloseTo
from core?