-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Error loading images with jest and detox #263
Comments
Could this be related to this? The comments there are not encouraging.
|
@LeoNatan Yeah I saw that, but it's weird how this issue only occurs when running detox tests. We've never had this problem running the app on Android or iOS. |
I am not really an RN guy, so I cannot really help here. Just tried to look for the issue. In that FB issue, there is no real explanation why it happens so that I could think what could be happening that detox might be doing. I don’t see detox in any of those flows, so I doubt it has anything to do with this issue, but I will keep the issue open for now until there is a clearer explanation what’s going on. If you can provide a demo project where this reproduces, please attach it here. |
We fixed this issue by updating the detox configuration to run in
|
update configuration from debug to release is totally not a solution, rebuild a release app is painful.Any other suggestions? |
@Obooman it seems to be a problem with Jest on iOS. The solution maybe mocking images. We managed to get both iOS and Android running with mocha and I've tried using Jest as a test runner - see here, but have encountered a few problems compared to using it with Mocha #362. I will try to investigate further and let you know if I find a fix. |
I'm using Mocha as my test runner and also crash into this issue.Each time detox uninstalls and reinstalls my app the error will be reproduced, while with |
Description
We have installed detox and have set it up to run with Jest using help from this issue.
The app runs fine through
xcode
and when runningreact-native run-ios
through the command line, but when running through detox we get the following error:There seems to a problem loading assets with detox. If I reload the app it loads as expected.
Steps to Reproduce
Setup detox with Jest using the issue above. Run a React Native app which uses images.
The text was updated successfully, but these errors were encountered: