mochajs / mocha

☕️ simple, flexible, fun javascript test framework for node.js & the browser
https://mochajs.org
MIT License
22.63k stars 3.02k forks source link

Standard font is glitching in the reporter #4694

Closed owenallenaz closed 10 months ago

owenallenaz commented 3 years ago

Prerequisites

Description

When I run mocha@8.4.0 the reporter formats the text correctly, but when I run mocha@9.0.2 or any of the 9.x.x line, the text output isn't formatted correctly regarding the sizing and spacing of the tests.

This behavior is happening when I use the node:14.17.3 or node:14.17.3-buster-slim docker containers.

Versions

JoshuaKGoldberg commented 10 months ago

I believe this is a Windows-specific bug with emojis. Mocha 9 switched to the thicker emoji rather than the old . Running these in the VS Code terminal on macOS 14:

Screenshot of running a passing mocha test with npx mocha@8, then mocha@9. 8 has the thin ✓ emoji while 9 has the thicker ✔.

Please let me know if I'm wrong here - and if so, which terminal app(s) you're using.

Edit: to be clear, by "Windows-specific" I mean Windows (or an app in it) is at fault for rendering emojis improperly.