• 개요
@angular/common/http/testing

HttpClientTestingModule

NgModule
사용 중단 권고

Configures HttpClientTestingBackend as the HttpBackend used by HttpClient.

사용 중단을 권고합니다.

Add provideHttpClientTesting() to your providers instead.

API

설명

Configures HttpClientTestingBackend as the HttpBackend used by HttpClient.

Inject HttpTestingController to expect and flush requests in your tests.

상세 내용으로 이동