A matcher for Jest's expect
expect.toBeWithin(number, number)
I've just authored @coderbyheart/jest-expect-tobewithin which adds a matcher to Jest's expect that lets you expect that a number is between two other numbers.
I've just authored @coderbyheart/jest-expect-tobewithin which adds a matcher to Jest's expect that lets you expect that a number is between two other numbers.