This is a fix for mockAsyncWithLDProvider. From the docs asyncWithLDProvider should return a Promise. This promise should resolved to a React component. This resolved React component on the good path, should render the children that are passed to it through its props.
Requirements
Related issues
https://github.com/launchdarkly/jest-launchdarkly-mock/issues/16
Describe the solution you've provided
This is a fix for
mockAsyncWithLDProvider
. From the docsasyncWithLDProvider
should return a Promise. This promise should resolved to a React component. This resolved React component on the good path, should render the children that are passed to it through its props.Describe alternatives you've considered
Additional context