Skip to content

running e2e tests #269

Answered by rbshh
iamhaaamed asked this question in Q&A
Jan 28, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

If you're using Metro as your bundler, add the following code to your metro.config.js file to set the default server configuration:

defaultConfig: { server: { host: 'localhost', port: 8081, }, }

Another possible solution in case of android is to utilise the built-in 'adb' command-line tool:

  1. Open a terminal within Android Studio.
  2. Start your test runner.
  3. Execute the following command to open the emulator's browser at localhost:8081
adb shell am start -a android.intent.action.VIEW -d 'http://localhost:8081'

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rbshh
Comment options

Answer selected by yjose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants