launchdarkly / jest-launchdarkly-mock

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

useLDClientError is missing from the mocks #47

Closed manelmadeira closed 1 year ago

manelmadeira commented 1 year ago

Describe the bug

When testing code with jest that contains the hook useLDClientError from launchdarkly-react-client-sdk we get the following error:

Error: Uncaught [TypeError: (0 , _launchdarklyReactClientSdk.useLDClientError) is not a function]

yusinto commented 1 year ago

This has been added in 2.0.1.