Skip to content

kontent-ai/core-sdk-js

Repository files navigation

npm version Build & Test npm Known Vulnerabilities GitHub license

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
    });
}