UNPKG

jest-launchdarkly-mock

Version:

Easily unit test LaunchDarkly feature flagged components with jest

22 lines 817 B
/// <reference types="jest" /> import { LDFlagSet } from 'launchdarkly-js-client-sdk'; export declare const ldClientMock: { addHook: jest.Mock<any, any>; allFlags: jest.Mock<any, any>; close: jest.Mock<any, any>; flush: jest.Mock<any, any>; getContext: jest.Mock<any, any>; identify: jest.Mock<any, any>; off: jest.Mock<any, any>; on: jest.Mock<any, any>; setStreaming: jest.Mock<any, any>; track: jest.Mock<any, any>; variation: jest.Mock<any, any>; variationDetail: jest.Mock<any, any>; waitForInitialization: jest.Mock<any, any>; waitUntilGoalsReady: jest.Mock<any, any>; waitUntilReady: jest.Mock<any, any>; }; export declare const mockFlags: (flags: LDFlagSet) => void; export declare const resetLDMocks: () => void; //# sourceMappingURL=index.d.ts.map