79736188

Date: 2025-08-15 07:44:11
Score: 0.5
Natty:
Report link

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 .

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: 1valdis