Skip to content

//workflow/com.squareup.workflow1.testing/RenderTester/render

render

[jvm]
Content
abstract fun render(block: (RenderingT) -> Unit = {}): RenderTestResult<PropsT, StateT, OutputT>
More info

Execute the workflow’s render method and run block to perform assertions on and send events to the resulting rendering.

All workflows rendered/ran by the workflow must be specified before calling this method. Workers are optionally specified.

Return

A RenderTestResult that can be used to verify the WorkflowAction that was used to handle a workflow or worker output or a rendering event.

Parameters

jvm

block

Passed the result of the render pass to perform assertions on. If no child workflow or worker was configured to emit an output, may also invoke one of the rendering’s event handlers. It is an error to invoke an event handler if a child emitted an output.