I use jest to test an Angular 11.2.6 app recently migrated from 8 to 11. Jest version is :
I run jest, most of my tests pass, but I have three tests keeping running infinitely.
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.