We have an Angular 10 application with about 600 Jasmine tests run in Karma using headless Chrome.
Recently one of these tests started failing with an "An error was thrown in beforeEach" error. What is the best way to find out which test is failing?
I tried adding some reporters to the Karma configuration, so that I would see which tests are being executed. The reporter I tried printed the name of every tests after it was executed, but since the test failed in a beforeEach method, the name never got printed. I tried looking for a reporter that would print the name of a test before it was executed, but I could not find any. Eventually I did a binary search by deleting half the test suite until I figured out which test was failing, but I believe there must be a better way to do this.