From 9353d388a6b268096bcae35343ba6e144072fbab Mon Sep 17 00:00:00 2001 From: NaganeVilas Date: Thu, 10 Jun 2021 22:08:31 +0530 Subject: [PATCH] Changed Color and Emoji in Test Run Output --- .mocharc.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .mocharc.js diff --git a/.mocharc.js b/.mocharc.js new file mode 100644 index 0000000..42cd878 --- /dev/null +++ b/.mocharc.js @@ -0,0 +1,17 @@ +//.mocharc.js +const {colors, symbols} = require('mocha/lib/reporters/base'); +colors.pass = 32; +symbols.ok = '✅'; + +// example config from Mocha repo +module.exports = { + diff: true, + extension: ['js'], + package: './package.json', + reporter: 'spec', + slow: 75, + timeout: 2000, + ui: 'bdd', + 'watch-files': ['lib/**/*.js','test/**/*.js'], + 'watch-ignore': ['lib/vendor'] +}; \ No newline at end of file