I have setup an angular testbed and I noticed i forgot to provide a service to be injected into my interceptor, so it broke.
The problem is I didn't get any feedback or errors from the testbed, is there are way to validate that all is well ?
for example I am doing this
TestBed.configureTestingModule({
imports: [HttpClientTestingModule, HttpClientModule],
providers: [
{
multi: true,
provide: HTTP_INTERCEPTORS,
useClass: BaseRefInterceptor
}
]
})
The problem above is that the BaseRefInterceptor required a logging provider that I forgot to provide but nothing gave an error just some of my tests failed - but the failure in the tests didn't point to the inteceptor not being able to be constructed.
I was hoping for an error saying, missing injector or something similar
Any idea how to do this ?