launchdarkly / jest-launchdarkly-mock

Easily unit test LaunchDarkly feature flagged components with jest
Apache License 2.0
25 stars 18 forks source link

mockUseFlags should return an empty object #57

Closed hjoelh closed 1 year ago

hjoelh commented 1 year ago

Requirements

Related issues https://github.com/launchdarkly/jest-launchdarkly-mock/issues/55

Describe the solution you've provided When jest-launchdarkly-mock is added to a jest config, useFlags() calls will now return an empty object by default, which matches its actual implementation

Additional context

Thanks! 😀

louis-launchdarkly commented 1 year ago

Hello @hjoelh, thank you for the contribution! I am sorry for the wait - the main developer for jest-launchdarkly-mock is OOO right now, but we will look at this when he is back.