launchForTestingFromStateWith

Creates a WorkflowTestRuntime to run this workflow for unit testing. If the workflow is stateful, initialState is not called. Instead, the workflow is started from the given initialState.

All workflow-related coroutines are cancelled when the block exits.