I am starting a new angular project with the CLI and am running into a no provider for HttpClient error.
I have added HttpClientModule to m
In your test
TestBed.configureTestingModule({
providers: [FlexSearchService, HttpClientModule]
});
It should be
TestBed.configureTestingModule({
imports: [HttpClientModule],
providers: [FlexSearchService]
});
or even better (if you want to mock request):
TestBed.configureTestingModule({
imports: [HttpClientTestingModule],
providers: [FlexSearchService]
});