I want to log some messages while running a test. The messages are logging just fine with the statement console.log but I want to log the messages in green color so I am writing like below but all of it is coming as text rather than green color.
console.log(`%c ${process.name} completed`, 'color: green');
the output is
%c Process1 completed 'color:green'
expected output is (in green color)
Process1 completed