-
Notifications
You must be signed in to change notification settings - Fork 133
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
Jest fails with TypeError: react_native_1.Dimensions.addEventListener is not a function #62
Comments
This was fixed by using https://github.com/callstack/react-native-testing-library |
I think adding some instructions to README regarding testing, in general, would be quite beneficial :) Apart from the issue, the library looks great, Thanks for your hard work! |
how did you fix this? I'm using |
@NathHorrigan I'm getting this error still. Could you provide a little more detail on how you fixed this? |
still facing this error too |
We've migrated to the Please, reopen with reproduction steps if this is still an issue. |
@fortmarek is there any way to use useWindowDimensions outside component like in util functions we can use Dimensions.get in util function but after React Native 0.73.8 upgrade jest unit tests are failing for below error so could you or any one please help regarding this issue |
While writing a test for
createText
I came across an issue regarding missing fields on theDimensions
object.This seems to be an ongoing issue for the repo, however I am unable to mock the code the module manually:
Have you any suggestions?
The text was updated successfully, but these errors were encountered: