-
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
Timeout on ejected expo project #1627
Comments
What is new here in this issue that isn't available in the previous ones? What does "dead ends for ejected expo projects" mean? |
Either the resolved ones are bare react-native projects/non-ejected Expo projects or there is no answer to the original question: why is there no response from the |
Have you used the appropriate debugging docs to try and track down why the sync is stuck? |
Perhaps it is a similar issue to #1422 regardless of ejection status. Follow the sync debugging docs, report here with findings and we'll see. |
Running
|
|
OK, so you have your answer. It's your network requests that are causing the problem. Follow the docs to set this URL in a blacklist so it doesn't interfere with Detox. |
@LeoNatan I've tried beforeAll(async () => {
await detox.init(config, { launchApp: false });
await device.setURLBlacklist([".*10.4.12.46.*"]);
await device.launchApp({
newInstance: true,
launchArgs: {
detoxURLBlacklistRegex: '\\("http://10.4.12.46:19001/onchange"\\)'
}
});
}); but no luck, i'm still getting
followed by
|
I got it to work by disabling live reload after launching the app. Thanks for your help |
Describe the bug
detox test
reaches the timeout and returnsReferenceError: device is not defined
andReferenceError: element is not defined
.The issue comes from line 126 of
Client.js
:When
action
=Ready { type: 'isReady', params: {}, messageId: -1000 }
,response
is never returned andjest
times out.I know this issue has been reported by a few other people already (#1288, #908, #155, #917, ...) but all of these are dead ends for ejected expo projects.
Important detail: the only way i've made this work is by running detox with the release configuration, but i want to make it work with the debug config as showed in the "Getting started" guide.
To Reproduce
expo-cli
by runningnpm install expo-cli -g
expo init
to create a new projectcd
into your project, runyarn && cd ios && pod install
package.json
, change thebinaryPath
of your app if neededdetox build
anddetox test
Expected behavior
detox.init()
should not hang when sending the "Ready" action.Environment:
Device and Verbose Detox Logs
These are the last logs before the tests fail:
I'm super eager to try detox, i'm just a few steps away from it. Any help is welcome!
The text was updated successfully, but these errors were encountered: