-
Notifications
You must be signed in to change notification settings - Fork 5
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
Expo constants are undefined when executing tests #96
Comments
Hi @sayo96, I'm not sure the suggested fix is the same issue, as it appears to be catering for the scenario where At what point are you seeing this error? Would you mind sharing some details on how you are mocking the various packages? Especially the Thanks |
Hey @johnkiely1 . I apologise for the delayed reply. I was caught up with other expo bugs. Here is what we did :
I had to add stuff in default to prevent the manifest bug which is kinda hack tbh.. Can you also let me know why the mock file was not considered? |
Thanks @sayo96, I'm glad you've found a fix. It looks like any code uses Having said that we are looking into the possibly at replacing our usage of |
@johnkiely1 Sounds good thanks a ton :) |
Describe the bug
A clear and concise description of what the bug is.
I'm running into an error which says "Can't read manifest of undefined" when running tests. I do have a mock in place but i guess the issue lies within bugsnag-expo
For some weird reason, Constants appear as undefined here
bugsnag-expo/packages/expo/src/config.js
Line 12 in 2189984
Please do note that i have a mock function which mocks the expo constants as well
Steps to reproduce
Environment
Example Repo
Example code snippet
Error messages:
● Test suite failed to runThis might be the possible fix :
expo/eas-cli#1265 (comment)
If yes, please implement it and publish it in a next release so i could use it
The text was updated successfully, but these errors were encountered: