This does not combine toMatchSnapshot
and toBeCloseTo
but solves the underlying problem: loosely compare to a bunch of known results.
Instead of using snapshots at all, I have made a JSON file with the expected results. I import it in the test file and compare with it using toBeCloseTo
.