Back
When I run the mocha tests in Jenkins, on the console output I can see â instead of the ✓ (CHECK MARK) utf-8 character.
How can I replace these symbols to human-readable format
The easiest way to resolve this issue is by changing the default reporter of mocha in the helper.js
helper.js
const mocha = require("mocha");mocha.reporters.Base.symbols.ok = "[PASS]";mocha.reporters.Base.symbols.err = "[FAIL]";
const mocha = require("mocha");
mocha.reporters.Base.symbols.ok = "[PASS]";
mocha.reporters.Base.symbols.err = "[FAIL]";
package.json
{ ... "scripts": { ... "test": "mocha --require helpers.js" }
{ ...
"scripts": { ...
"test": "mocha --require helpers.js"
}
31k questions
32.8k answers
501 comments
693 users