You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
When a golden test failure occurs,
rescript-jest
eventually invokes an unbound functionfail
, leading to aReferenceError
. 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:
The text was updated successfully, but these errors were encountered: