Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jest green check marks not showing on terminal

I am just getting into js/react testing with Jest. Even though it is supposed to be painless testing it has been a bit painful to me:

In the very beginning of my tests, I used to be able to see each test with a green or red check mark. It was very good visually. Now, I am unable to see the little marks next to the tests and I was wondering if someone could guide to see where in the Jest config I could change this feature.

This is my current display when I run my tests: (no check marks or reference to my specific tests)

enter image description here

like image 609
Monique Avatar asked Aug 17 '18 16:08

Monique


1 Answers

Jest only outputs the results of every test when in verbose mode, or when there are tests failing. Try running:

jest --verbose

Alternately you can set the option in jest.config.js.

like image 182
Mitch Lillie Avatar answered Nov 15 '22 09:11

Mitch Lillie