Angular 6 – How to debug ‘[object ErrorEvent] thrown’ in Karma tests? What about ng test –single-run?

I was writing about the similiar problem in case of Angular v4 in the post named How to debug ‘NetworkError: Failed to execute ‘send’ on ‘XMLHttpRequest” in Karma tests. With Angular v6 error message is little different but still does not provide useful message. With Angular v6 a solution of this problems is also slightly […]

Continue reading


How to debug ‘NetworkError: Failed to execute ‘send’ on ‘XMLHttpRequest” in Karma tests

Running tests that fail without any useful information may be very frustrating. I faced this problem with Karma tests for Angular 4 application. I made few changes in my code and then got message: ‘Uncaught NetworkError: Failed to execute ‘send’ on ‘XMLHttpRequest’ with no explanation what’s wrong. It seems to be a Karma/Angular/CLI bug and […]

Continue reading