@wdio/sync
Version:
A WebdriverIO plugin. Helper module to run WebdriverIO commands synchronously
11 lines • 595 B
TypeScript
/**
* Helper method to execute a row of hooks with certain parameters.
* It will return with a reject promise due to a design decision to not let hooks/service intefer the
* actual test process.
*
* @param {Function|Function[]} hooks list of hooks
* @param {Object[]} args list of parameter for hook functions
* @return {Promise} promise that gets resolved once all hooks finished running
*/
export default function executeHooksWithArgs(hookName?: string, hooks?: Function | Function[], args?: any | undefined): Promise<unknown[]>;
//# sourceMappingURL=executeHooksWithArgs.d.ts.map