-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
When a golden test failure occurs, rescript-jest eventually invokes an unbound function fail, leading to a ReferenceError. This can make it harder to debug test failures -- it's not immediately clear, for example, if the error is raised because of a genuine test failure or some other problem.
Example:
Summary of all failing tests
FAIL lib/js/__tests__/.../<type>_spec.js
● AesonSpec.sampleGoldenSpec: <type> from file '<path>/<type>.json' with encoding latin1 › decode then encode json_file - [object Object]
ReferenceError: fail is not defined
at affirm (node_modules/@glennsl/rescript-jest/lib/js/src/jest.js:36:9)
at Object.<anonymous> (node_modules/@glennsl/rescript-jest/lib/js/src/jest.js:247:19)
Reactions are currently unavailable