-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Test] Cannot read property 'LENGTH_LONG' of undefined #194
Comments
how to resolve this ? any one able to find the solution ? |
see this issue: #43. Also ensure your pods are installed |
I am getting a similar message - "Cannot read properties of undefined (reading 'LENGTH_LONG')" |
Same issue here, works fine when using the app, however once I run Jest it will fail. Already added the package to Jest |
I was getting this issue, uninstalling app, closing metro server and running app again worked for me. |
Any working solution or fixes on this issue? |
If anyone is struggling with this, you can create a mock in your jest.mock('react-native-clipboard', () => ({
LENGTH_SHORT: 5,
LENGTH_LONG: 10,
LENGTH_INDEFINITIE: -1,
show: jest.fn(),
dismiss: jest.fn(),
}) I've addressed this in a PR, here: #210 |
Thank you @jakequade, hopefully that clears up the confusion. Closing this issue. |
I'm getting error Cannot read property 'LENGTH_LONG' of undefined when i do
yarn test
i'm using version 2.4.0
Environment
react-native: 0.65.2 => 0.65.2
Steps i did so far
The text was updated successfully, but these errors were encountered: