I keep getting the following errors when running unit tests
Error: StaticInjectorError(DynamicTestModule)[ApiService -> HttpClient]: StaticInjectorErro
simply add it like this,
beforeEach(() => { TestBed.configureTestingModule({ imports: [ HttpClientModule, ], }).compileComponents(); });