Tuesday, 21 July 2020

Jest doesn't seem to be able to match a foreign language string

expect(received).toEqual(expected) // deep equality Expected: "สตรงการทดสอบ" Received: "สตรงการทดสอบ" I put this in featherpad and zoomed in. The Thai characters appear to be an exact match.Is this some sort of character set issue or is Jest just bad at matching strange languages?If anyone has dealt with this I'm curious about any workarounds you might have used.

Submitted July 21, 2020 at 01:39PM by javascript_dev

No comments:

Post a Comment