I run tests using appium, but the connection gets closed unexpectedly interrupting all the tests leading them to fail.
Please check the screenshot of the logs
Appium beta has its fix for MacOs. Install the appium beta version using:
npm install -g appium@beta