I am starting a new angular project with the CLI and am running into a no provider for HttpClient error.
HttpClient
I have added HttpClientModule to m
HttpClientModule
Import HttpClientTestingModule.
In your test:
import { HttpClientTestingModule } from '@angular/common/http/testing';
and in the configureTestingModule of your test, do the following:
TestBed.configureTestingModule({ imports: [ HttpClientTestingModule ], }) .compileComponents();