launchdarkly / jest-launchdarkly-mock

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

fix: mockWithLDConsumer should not return null #29

Closed debaraj-barua closed 2 years ago

debaraj-barua commented 2 years ago

Requirements

Related issues

Describe the solution you've provided

Currently the mock for WithLDConsumer returns null which leads to errors such as below:

Screenshot 2022-05-23 at 20 01 15

Describe alternatives you've considered

Provide a clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context about the pull request here.

jacobScottAllen commented 2 years ago

Hello @debaraj-barua ,thank you for your contribution! Just letting you know we see this (as well as the issue you created that this fixes) and will be looking into it soon. This seems like a simple change so it shouldn't take too long.

yusinto commented 2 years ago

This has been fixed in v1.0.3.