My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Dany Paredes

8 likes

·

5.7K reads

2 comments

jagadish kumar
jagadish kumar
Jun 15, 2023

i did the same that you have mentioned but i am getting this error: NullInjectorError: NullInjectorError: No provider for HttpClient! error properties: Object({ ngTempTokenPath: [ 'LoginNavigationService', 'NavigationService', 'UrlService', 'Page', 'ClientConfigService', 'HttpClient', 'HttpClient' ] })

image.png

image.png

image.png

does this mean we cannot mock the service in testbed without including the internal depencies that the service has?

·
·1 reply
Dany Paredes
Dany Paredes
Author
·Jun 18, 2023

You must provide the HttpClientTestingModule.

·