Nightwatch.js how to output message in console with Color?

Using Nightwatch.js / Visual Code studio

during e2e task , console output are colorized ...

Starting selenium server... started - PID: // in magenta

[Test] Test Suite // in blue

I tried to output a console message from my runner.js file

onsole.log('%ctarting DB-JSON test Server... started - PID:  %s', 'color:yellow', process.pid)

but no way , no Colors in the output ... feedback welcome

链接地址: http://www.djcxy.com/p/87382.html

上一篇: 更改tty / console / terminal中的字体大小

下一篇: Nightwatch.js如何使用Color在控制台中输出消息?