[Fixed] Jest – How to get more details on a non stopping test?


I use jest to test an Angular 11.2.6 app recently migrated from 8 to 11. Jest version is :

"jest": "^26.6.3",
"jest-preset-angular": "^8.4.0"

I run jest, most of my tests pass, but I have three tests keeping running infinitely.

enter image description here

I don’t have any clue about the involved error in the logs.

By adding comment on the corresponding html file, I realized that to delete one particular type of div (two customized component from external library) in particular in each file, the tests pass. However, those divs also exist on other tested files, and I don’t see any difference between them.

Would you have a clue, to have more details in the logs for example?


To get into details, I had to run specifically each test using this command :

npm run test — name-test

Problem solved, thanks.

Leave a Reply

(*) Required, Your email will not be published