expectInterruptBefore

fun expectInterruptBefore(node: String, check: (State) -> Unit = {}): State

Checks that the run paused next, and that node runs when it is resumed: the run paused before node because of GraphConfig.interruptBefore, after the node before it because of GraphConfig.interruptAfter, or in node because it called interrupt. check gets the state of the paused run.

Return

the state of the paused run.