Anyone used TestEnvironment with Jest to instantiate a global driver

I’m tying to figure out a straightforward way to instantiate an appium driver that can be used across multiple test.js files and used during a test run so I don’t end up reinstalling/relaunching the app for every test file. The testEnvironment and/or globalSetup/Teardown seem like possible options. Anybody using this technique? I’d love to see how you did it.

I’ve looked at this Appium POM example, but it is fairly complex and forces you to write all the tests in a non-standard format , which I’d like to avoid. It also means I can’t execute just a certain test file with Jest.



I’m also wondering about the same thing. How did you end up going about this @jerimiah797? It seems like the testEnvironment approach is the way forward for me.