beforeEach (browser, cb) {
      // avoid running if missing credentials
      if (shouldSkipBrowserstackReporting(this.client)) return cb()
      // retrieve the session and save it to the map
      const key = getKey(this.client)
      browser.session(({ sessionId }) => {
        sessionMap[key] = sessionId
        cb()
      })
    }
Generates an object with beforeEach and afterEach functions to be added
to every test suite. It cannot be added globably because these must be
executed before each test (instead of each test suite as it does in globalModules)