Open jabirbarber-giacom opened 4 years ago
I also previously had this issue, but repeating all the steps in this article seemed to solve it. Maybe I had skipped a step.
One thing to note, am using detox v15.1.4 on Expo v36.0.0 and my tests are running just fine
It works with v36.0.0, but not with v37.0.0
@davidevernizzi are you using app.json
or app.config.js
?
My Detox tests stopped working when I switched to app.config.js
. Below is the minimum app.json
config that got the tests working for me. The rest of my fields are in app.config.js
.
{
"expo": {
"name": "App Name"
}
}
I have the same issue on SDK version v38. Does anyone have a solution?
Hi all. I've outlined a solution for newer versions of Expo and Detox here: https://github.com/expo/detox-tools/issues/1#issuecomment-740675824, and it's directly relevant to this repo as well.
hi @lookitsatravis I followed your example closely, but it currently still hangs. At least I'm almost certain I followed your example exactly.
I'm going to dig into it a bit more today, but if you're aware of any changes, please let me know.
Ideally there should be a PR into this repo.
For anyone stuck on this: here is a repo showing a setup that works for ios at least https://github.com/fschoenfeldt/clean-expo-detox-testing
The setup mentioned above is a workaround that works by disabling the synchronization. I'm not sure if it fork actually solves the problem as running device.enableSynchronization()
hangs indefinitely so it's possible the Expo integration is still not injected correctly.
Not working with Expo SDK 36
Debugging reveals that it's hanging on
await device.launchApp()
inreloadApp()
package.json
Even if I bypass the hanging promise via
function timeout(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } beforeEach(async () => { reloadApp(); await timeout(12000); });
It hangs onawait expect(element(by.id('welcome'))).toBeVisible();