Closed debaraj-barua closed 2 years ago
From my perspective, WithLDConsumer should not return null while mocking, it should return the children instead.
WithLDConsumer
null
https://github.com/launchdarkly/jest-launchdarkly-mock/blob/d3e792082b4e3743cff63c331e92341a82ed1574/src/index.ts#L55
This leads to errors like when mocking
@debaraj-barua thanks for opening the PR - our team will look at it soon.
From my perspective,
WithLDConsumer
should not returnnull
while mocking, it should return the children instead.https://github.com/launchdarkly/jest-launchdarkly-mock/blob/d3e792082b4e3743cff63c331e92341a82ed1574/src/index.ts#L55
This leads to errors like when mocking