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
Updated SDK contributor's guide link as current one is dead
Modified 'reset all flag mocks' test to better represent the affect resetLDMocks() has on mockUseFlags
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.
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 implementationAdditional context
resetLDMocks()
has onmockUseFlags
Thanks! 😀