To do so, first install the necessary Babel dependencies:
Make sure your
babel.config.js is configured properly.
The simplest setup you can use is:
Once this is set up WebdriverIO will take care of the rest.