-
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
Improve Mocking Documentation to include detox build
#1116
Comments
|
Hey @LeoNatan Thanks for the reply. We've tried using However, this hasn't worked. The only way I can get it to work is by calling Is there a different way I should be calling Thanks! 👍 |
Which configuration are you running? |
@LeoNatan Ah, interesting. I believe it is debug, which could explain why it's only working when we start the packager manually. I'll see how we go with a release configuration. |
It is always best to test with release configuration as it’s the closest to what users get. You can also try |
@LeoNatan That was it! Turns out it needed we needed to be building it as a release configuration. Thanks so much for helping us through that. |
You closed the issue, but I had a follow up question. If you |
Hey @LeoNatan. Sorry, I didn't hear back and didn't want to leave tickets open. |
Description
Hey Detox Team. 👋
We've been trying to get mocking working for our CI and are running into a lot of issues. We've spent an inordinate amount of time trying to find a way to get
detox build
working with theRN_SRC_EXT=e2e.js
prefix, but we haven't had any luck. OnlyRN_SRC_EXT=e2e.js react-native start
seems to work, however, we can't really do this in a CI setting.I'm sure there is a simple step missing here. There are a number of Stack Overflow questions (with no or self-answers) on this topic. I think it would be really beneficial for there to be a simple example of how to use mocking alongside the recommended
detox build
command, or what to use instead.Thanks! 👍
The text was updated successfully, but these errors were encountered: