I\'m using Angular 11 with typescript and I don\'t know how to test the paths in which the method raise an exception.
myMethod() { this.myService.callBa