@kontent-ai/core-sdk
v10.8.0
Published
Core package with shared / common functionality for Kontent.ai SDKs
Downloads
37,176
Readme
Core package
This package contains core functionality used by dependant Kontent.ai SDKs such as Delivery SDK or Management SDK.
Testing
If you want to inject testing service as an implementation of IHttpService, it is possible to use configurable Test Http Service.
import { TestHttpService } from '@kontent-ai/core-sdk';
const client = new /*(Delivery/Management)*/Client() {
// ...
httpService: new TestHttpService({
fakeResponseJson: json,
throwError: false
});
}