toBeCloseTo
A Vitest matcher that allows a tiny difference, for comparing decimals such as 0.1 + 0.2 with 0.3. Keeping money in whole cents avoids the need for it.
A Vitest matcher that allows a tiny difference, for comparing decimals such as 0.1 + 0.2 with 0.3. Keeping money in whole cents avoids the need for it.