Closed rasgele closed 4 years ago
I am experiencing same issue too. Just because of this error, I couldn't get Jest work without workarounds.
i => İ
ı => I
(Lower => Upper s in Turkish)
I have created PR. I think that will fix it.
@selimrecep Sorry, in parallel I've also submitted a PR. Any of them is fine :)
Case conversion are done with
String.prototype.toLocaleLowerCase()
andString.prototype.toLocaleUpperCase()
without explicit locale parameter and this causes host dependent output. Example:This causes unexpected results int hosts with non en-US environment.
I'd suggest to extend
options
parameter to have alocale
property to be passed to aforementioned methods.