expectWorkerOutputting

inline fun <PropsT, StateT, OutputT, RenderingT> RenderTester<PropsT, StateT, OutputT, RenderingT>.expectWorkerOutputting(outputType: KType, key: String = "", crossinline assertWorker: (Worker<*>) -> Unit = {}, output: WorkflowOutput<*>? = null, description: String = ""): RenderTester<PropsT, StateT, OutputT, RenderingT>(source)

Specifies that this render pass is expected to run a Worker with the given outputType.

Parameters

outputType

the KType of the Worker's OutputT type parameter.

key

The key passed to runningWorker when rendering this workflow.

output

If non-null, WorkflowOutput.value will be emitted when this worker is ran. The WorkflowAction used to handle this output can be verified using methods on RenderTestResult.

description

Optional string that will be used to describe this expectation in error messages.