clean-expo-detox-testing icon indicating copy to clipboard operation
clean-expo-detox-testing copied to clipboard

device is not defined

Open sabativi opened this issue 3 years ago • 3 comments

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 ?

sabativi avatar Sep 13 '21 13:09 sabativi

Hey @fschoenfeldt do you have any clue ?

Simply doing :

  • git clone
  • yarn
  • yarn test

And I have this error

sabativi avatar Sep 16 '21 10:09 sabativi

@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 👍

fschoenfeldt avatar Sep 16 '21 11:09 fschoenfeldt

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

sabativi avatar Sep 22 '21 10:09 sabativi