node.js - How to get npm tests output with colors in tfs build log console -


i have tfs 2017 build running npm tests. when executing build of npm tests output not colourized colurized when execute these test in command line without build.

how can these colours written karma same on build log console?

see "color" in npm config:

if set "always" output in color. default output in color if directly connected tty.

but keep in mind test runner npm test starts may need configured accordingly.

if you're using karma-runner see this:

and search "color" config option.

if nothing helps may able trick program it's being connected real tty tools script:


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -