runTask<A, R, T>(task: (this: T, ...argz: A) => R, args: A, context?: Partial<T>): Promise<R>
Runs a task function outside the context of a Command, in complete isolation.
A mock command context is provided with standard defaults, and can be customized
through the 3rd argument.
Runs a task function outside the context of a
Command
, in complete isolation. A mock command context is provided with standard defaults, and can be customized through the 3rd argument.