RenderTestResult

Result of a RenderTester.render call that can be used to verify that a WorkflowAction was processed and perform assertions on that action.

See also

Functions

Link copied to clipboard

Starts a new RenderTester session using the same props as the previous session started by testRender or testNextRenderWithProps, and the state that is a result of the latest render pass (the same one you could run assertions on in verifyActionResult).

Link copied to clipboard

Starts a new RenderTester session using newProps props, and the state that is a result of the latest render pass (the same one you could run assertions on in verifyActionResult).

Link copied to clipboard

Asserts that the render pass handled either a workflow/worker output or a rendering event, and passes the resulting WorkflowAction to block for asserting.

Link copied to clipboard
abstract fun verifyActionResult(block: (newState: StateT, appliedResult: WorkflowOutput<OutputT>?) -> Unit): RenderTestResult<PropsT, StateT, OutputT, RenderingT>

Asserts that the render pass handled either a workflow/worker output or a rendering event, "executes" the action with the state passed to testRender, then invokes block with the resulting state and output values.