Open ray-holland-es opened 1 year ago
Hello @ray-holland-es, thank you for reaching out with the feature request, I have added this to the team's backlog.
Filed Internally as 193002.
@ray-holland-es: if you add launchdarkly-react-native-client-sdk
to transformIgnorePatterns
, then your unit tests should pass.
@louis-launchdarkly any news with this, or at least any examples on testing in react native
Hi @louis-launchdarkly, Is there any guide on mocking @launchdarkly/react-native-client-sdk
?
Is your feature request related to a problem? Please describe. For web, you have the
jest-launchdarkly-mock
package (that doesn't support react native) where you can mock LD and run you tests.Describe the solution you'd like I would like it if you make a mock library or documentation on how to get jest tests to work using
react-native-client-sdk
.Currently, when I run the tests for my application I'm getting the following: