DEV Community

Cover image for Jest - Else path not taken !!!
surya
surya

Posted on

Jest - Else path not taken !!!

Is there any way to ignore the 'else path not taken' error while running the coverage report in jest in typescript.

Image description

Because of this problem, I was unable to cover my test coverage by 90%. There were solutions to fix this πŸ™„.

Top comments (2)

Collapse
 
giovannimazzuoccolo profile image
Giovanni Mazzuoccolo

Or maybe write a test that check the else case, so you will coverage will grow :)

Collapse
 
suryavi profile image
surya

Thank you πŸ™. so much Giovanni mazzuoccolo now my test coverage complete 100% πŸ₯³

Image description