We very ofthen use this syntax
expect(...).toBeCloseToArray(array, x) // Where x is the precision, i.e., the number of decimal places. // For example, if x = 3, it checks for three digits after the decimal point (1.XXX).