tesseract.js icon indicating copy to clipboard operation
tesseract.js copied to clipboard

Tests randomly fail

Open Balearica opened this issue 1 year ago • 0 comments

Tests will randomly fail. This seems to happen for the (newly added) Node 16 and Node 18 versions. The most common error is below.

     Uncaught Error: expected '84,101,115,115,101,114,97,99,116,46,106,115,10' to equal 'Tesseract.js\n'

Notably, the left side does equal Tesseract.js\n, it is just encoded for some reason. It's unclear why this happens, however as (1) it does not happen consistently [the tests pass when rerun] and (2) I have not encountered any behavior along these lines in actual use, I will continue to rerun the tests when they fail in the short term. Please post a comment if you encounter any behavior along these lines in actual (non unit test) usage.

Balearica avatar Aug 20 '22 00:08 Balearica