diff --git a/packages/shared/sdk-client/__tests__/LDClientImpl.hooks.test.ts b/packages/shared/sdk-client/__tests__/LDClientImpl.hooks.test.ts index bc1df61f9..c0abb1477 100644 --- a/packages/shared/sdk-client/__tests__/LDClientImpl.hooks.test.ts +++ b/packages/shared/sdk-client/__tests__/LDClientImpl.hooks.test.ts @@ -29,6 +29,12 @@ it('should use hooks registered during configuration', async () => { { sendEvents: false, hooks: [testHook], + logger: { + debug: jest.fn(), + info: jest.fn(), + warn: jest.fn(), + error: jest.fn(), + }, }, factory, ); @@ -74,6 +80,12 @@ it('should execute hooks that are added using addHook', async () => { platform, { sendEvents: false, + logger: { + debug: jest.fn(), + info: jest.fn(), + warn: jest.fn(), + error: jest.fn(), + }, }, factory, ); diff --git a/packages/shared/sdk-client/__tests__/TestDataManager.ts b/packages/shared/sdk-client/__tests__/TestDataManager.ts index c7e35096d..45b526a17 100644 --- a/packages/shared/sdk-client/__tests__/TestDataManager.ts +++ b/packages/shared/sdk-client/__tests__/TestDataManager.ts @@ -84,7 +84,7 @@ export default class TestDataManager extends BaseDataManager { export function makeTestDataManagerFactory( sdkKey: string, platform: Platform, - options: { + options?: { disableNetwork?: boolean; }, ): DataManagerFactory { @@ -118,7 +118,7 @@ export function makeTestDataManagerFactory( }), baseHeaders, emitter, - !!options.disableNetwork, + !!options?.disableNetwork, diagnosticsManager, ); }