Closed greeze closed 2 years ago
I also Just ran into this issue except I'm using LDProvider
is it possible to implement mocks for the providers in this lib?
It seems that this is not still published on npm. Do you know when is it possible to have this on npm?
@yusinto I'm wondering if #15 was lost during some transition. Not totally sure about the branch set up, but it looks like that PR was merged to master but now this repo only has a main branch, and this change was not published as part of the 1.0.0 release.
The provider functions
asyncWithLDProvider
andwithLDProvider
are not mocked, but are exported from 'launchdarkly-react-client-sdk'. One approach might be something along these lines: