Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8896573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:06:28+00:00 2026-06-15T00:06:28+00:00

When I run Mocha , it tries to show a check mark or an

  • 0

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 screenshots were all taken on Macs or Linux. In a console window on Windows, these characters both show up as a nondescript empty-box character, the classic “huh?” glyph:

Screenshot of Mocha in the Windows console, with a box character instead of the expected check mark

If I highlight the text in the console window and copy it to the clipboard, I do see actual Unicode characters; I can paste the fancy characters into a textbox in a Web browser and they render just fine (✔, ✖). So the Unicode output is getting to the console window just fine; the problem is that the console window isn’t displaying those characters properly.

How can I fix this so that all of Mocha’s output (including the ✔ and ✖) displays properly in a Windows console?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T00:06:29+00:00Added an answer on June 15, 2026 at 12:06 am

    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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the javascript test-runner Mocha. I have a test that is failing,
I have the following mocha mock that works great. In a test.rb file: setup
I found that spork-test unit fail with mocha mock/stub. However, if I run the
See my test code using mocha + tamejs: test/t.tjs require('should'); function inc(n, callback) {
What's the convention for making my mocha tests aware of my class under test
For a test suite that's already using mocha for mocking, can new tests be
I am trying to run some Mocha/Zombie.js tests on my new node.js (express) app.
I keep getting an error in the save() method when I run the test.
So I am trying to run unit tests with Mocha and Chai that are
I run a query sometimes and it just hangs. I go look at processes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.