This repository was archived by the owner on Mar 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Testing- TypeError: Cannot read property 'DocumentDir' of undefined #383
Comments
#212 was helpful |
Hello i have solved this issue---- when you install the you can to open project from iOS in Xcode then remove the library of RNFetchBlob.xcodeproj from library folder and then again add by right click on library folder from node modules-->react-native-fetch-blob--->iOS folder --->add project RNFetchBlob.xcodeproj then all required file will be there and make sure add lib on build phases also libRNFetchBlob.a it works for me. Thanks |
Thanks for tracking this down :) |
jainkuniya
added a commit
to jainkuniya/zulip-mobile
that referenced
this issue
Oct 3, 2018
No logical change, just code refactor. Refer zulip#3018 to know the motivation behind this. Create mock `DocumentDir` method for `react-native-fetch-blob` to pass jest test cases (wkh237/react-native-fetch-blob#383).
gnprice
pushed a commit
to zulip/zulip-mobile
that referenced
this issue
Oct 11, 2018
No logical change, just code refactor. Refer #3018 to know the motivation behind this. Create mock `DocumentDir` method for `react-native-fetch-blob` to pass jest test cases (wkh237/react-native-fetch-blob#383).
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am running jest unit tests, and I get the following error:
I went through all the previous similar issues but couldn't find a way to get rid of this error. The library is linked correctly and the app is functioning normally.
Is there any strategy you guys suggest for testing? Maybe updating the readMe could be helpful.
For reference:
RNProject: https://github.com/Sam1301/zulip-mobile/tree/fetch-blob-test
version: 0.10.5
Thanks.
The text was updated successfully, but these errors were encountered: