Prerequisites
Description
The checkmark and ex symbols used by mocha, don't render well in many Windows shell environments. For example, in Windows Subsystem for Linux, they show up as the missing Unicode question mark glyph.
Steps to Reproduce
Use mocha in WSL.
Expected behavior: The report renders successfully.
Actual behavior: Special characters are mangled.
Reproduces how often: 100%
Versions
-
The output of mocha --version and node node_modules/.bin/mocha --version: 6.2.0
-
The output of node --version: 8.16.0
-
Your operating system
- name and version: Windows 10
- architecture (32 or 64-bit): 64
-
Your shell (e.g., bash, zsh, PowerShell, cmd): zsh inside Ubuntu inside WSL inside Windows 10.
Additional Information
Recommended to detect WSL, and use plain ASCII characters in this case. The number of Windows shell environments that don't support Unicode characters well, far outnumbers the Windows shell environments that do.
Prerequisites
faqlabelnode node_modules/.bin/mocha --version(Local) andmocha --version(Global). We recommend that you not install Mocha globally.Description
The checkmark and ex symbols used by mocha, don't render well in many Windows shell environments. For example, in Windows Subsystem for Linux, they show up as the missing Unicode question mark glyph.
Steps to Reproduce
Use mocha in WSL.
Expected behavior: The report renders successfully.
Actual behavior: Special characters are mangled.
Reproduces how often: 100%
Versions
The output of
mocha --versionandnode node_modules/.bin/mocha --version: 6.2.0The output of
node --version: 8.16.0Your operating system
Your shell (e.g., bash, zsh, PowerShell, cmd): zsh inside Ubuntu inside WSL inside Windows 10.
Additional Information
Recommended to detect WSL, and use plain ASCII characters in this case. The number of Windows shell environments that don't support Unicode characters well, far outnumbers the Windows shell environments that do.