title: Reusable setup and teardown functions before each test?
body: <p>My background is mostly Selenium's python implementation, so I'm new to JavaScript and WebdriverIO.  Forgive me if this is an elementary level question</p>
  <p>Right now, there's a chunk of code  before() =&gt; {} block that is being copied/pasted at the beginning of teach /test/specs file, but I want it refactored out into a single setup function with that I can call that is shared across all test files so it is more maintainable and configurable.</p>
  <p>I couldn't find any sources in the documentation stating what the best practice is for reusable functions for WDIO.  What's the standard for creating a setup and teardown function?</p>