How can I get Mocha's Unicode output to display properly in a Windows console?

前端 未结 2 1810
予麋鹿
予麋鹿 2021-02-07 22:45

When I run Mocha, it tries to show a check mark or an X for a passing or a failing test run, respectively. I\'ve seen great-looking screenshots of Mocha\'s output. But those scr

2条回答
  •  春和景丽
    2021-02-07 23:40

    Update: this issue has now been fixed. Starting from Mocha 1.7.0, fallbacks are used for symbols that don't exist in default console fonts (√ instead of ✔, × instead of ✖, etc.). It's not as pretty as it could be, but it surely beats empty-box placeholder symbols.

    For details, see the related pull request: https://github.com/visionmedia/mocha/pull/641

提交回复
热议问题