jest-launchdarkly-mock
Version:
Easily unit test LaunchDarkly feature flagged components with jest
21 lines (20 loc) • 748 B
TypeScript
/// <reference types="jest" />
import { LDFlagSet } from 'launchdarkly-js-client-sdk';
export declare const ldClientMock: {
track: jest.Mock<any, any>;
identify: jest.Mock<any, any>;
allFlags: jest.Mock<any, any>;
close: jest.Mock<any, any>;
flush: jest.Mock<any, any>;
getContext: jest.Mock<any, any>;
off: jest.Mock<any, any>;
on: jest.Mock<any, any>;
setStreaming: 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;