UNPKG

595 BTypeScriptView Raw
1/**
2 * Helper method to execute a row of hooks with certain parameters.
3 * It will return with a reject promise due to a design decision to not let hooks/service intefer the
4 * actual test process.
5 *
6 * @param {Function|Function[]} hooks list of hooks
7 * @param {Object[]} args list of parameter for hook functions
8 * @return {Promise} promise that gets resolved once all hooks finished running
9 */
10export default function executeHooksWithArgs(hookName?: string, hooks?: Function | Function[], args?: any | undefined): Promise<unknown[]>;
11//# sourceMappingURL=executeHooksWithArgs.d.ts.map
\No newline at end of file