The browser remains undefined when we run this hook in webdriverio so we cannot call brower.setWindowSize or browser.url here, and also as we need to add the reporter before calling the exports.config file we cannot keep the contents of onPrepare same as we have in protractor.