clean-expo-detox-testing
clean-expo-detox-testing copied to clipboard
device is not defined
Hello, when doing a fresh install from here I have this error :
FAIL e2e/firstTest.test.js
Example
✕ should have welcome screen
● Example › should have welcome screen
ReferenceError: device is not defined
at reloadApp (node_modules/detox-expo-helpers/index.js:85:3)
What I am doing wrong ?
Hey @fschoenfeldt do you have any clue ?
Simply doing :
-
git clone
-
yarn
-
yarn test
And I have this error
@sabativi first off, thanks for pinging me as I somehow get no email about new issues in this repo – and it's honestly the first repo I've ever publicly maintained. So have mercy with me 😄
About your issue: Thank you for providing steps on how to reproduce the issue. I noticed that I was missing some important steps to get this project actually working. Also, yarn test
was delegating to jest
and not to detox
– fixed that.
With 73a4d2f6ee1fbcd64be0758e75c9b715e197b5f4, I added some more instructions on how to get it working.
It's still a bit flaky, but now it should work.
Please report back if this helped 👍
Thanks your reply and no worries you have no duty to answer quickly, with new changes everything is working now ! Will try to apply setup on my own project