You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running the mock in my tests I get the following error:
Cannot find module 'launchdarkly-react-client-sdk' from 'node_modules/jest-launchdarkly-mock/dist/index.js'
at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
at Object.<anonymous> (node_modules/jest-launchdarkly-mock/dist/index.js:7:6)
To reproduce
Setup jest-launchdarkly-mock
Run tests with LD
Expected behavior
package should contain launchdarkly-react-client-sdk dependencies
This package does not provide the react SDK. It is a package that is intended to be used against your existing dependency on the react-client-sdk.
It expresses this via a peer dependency. Meaning you have to directly depend on the launchdarkly-react-client-sdk in your project, and if you do not, then there isn't a reason to use this package. (As this is a package for mocking the SDK in tests, and if the SDK is not in use, then there is no need to mock it.)
Describe the bug
When running the mock in my tests I get the following error:
To reproduce
Expected behavior
package should contain launchdarkly-react-client-sdk dependencies
Logs
coming from here:
SDK version
"jest-launchdarkly-mock": "^2.1.0"
Language version, developer tools
Node - 20.15.1
Jest - 29.7.0
React - 17
OS/platform
MacOS
The text was updated successfully, but these errors were encountered: