packages/wdio-sync/src/index.js
function runSync (fn, repeatTest = 0, args = []) {
    return (resolve, reject) =>
        Fiber(() => executeSync.call(this, fn, repeatTest, args).then(() => resolve(), reject)).run()
}
function runSync (fn, repeatTest = 0, args = []) {
    return (resolve, reject) =>
        Fiber(() => executeSync.call(this, fn, repeatTest, args).then(() => resolve(), reject)).run()
}
function runSync ( fn , repeatTest = 0 , args = [ ] ) { return ( resolve , reject ) => Fiber ( ( ) => executeSync . call ( this , fn , repeatTest , args ) . then ( ( ) => resolve ( ) , reject ) ) . run ( ) }
run hook or spec via executeSync
run hook or spec via executeSync