Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to color code Jest output?

Tags:

jestjs

I'm using Gulp and Jest, and I was wondering if anyone has found a way to color code test output in the console, similar to how it's done with reporters in Karma. The output is kind of blah, and I was hoping to make it a little easier to read.

like image 818
mattblac Avatar asked Sep 25 '22 22:09

mattblac


1 Answers

  "scripts":{  "test": "jest --colors" }   //package.json

Add the parameter --colors to your command while running jest..

like image 125
Ashley Fernandes Avatar answered Oct 11 '22 15:10

Ashley Fernandes