@wpkernel/test-utils v0.12.6-beta.3
@wpkernel/test-utils / withActionRuntimeOverrides
Function: withActionRuntimeOverrides()
ts
function withActionRuntimeOverrides<T>(overrides, callback): Promise<T>;Executes a callback with temporary action runtime overrides, ensuring cleanup afterwards.
Type Parameters
T
T
Parameters
overrides
The overrides to apply to the action runtime.
callback
() => T | Promise<T>
The function to execute with the modified runtime.
Returns
Promise<T>
The return value of the callback.
