Skip to content

expectIO

IO<Unit> expectIO(
  dynamic actual,
  dynamic matcher, {
  String? reason,
  Object? skip,
})

Lifts a test expectation into IO, allowing assertions to be composed within an IO program.

Equivalent to calling expectLater and wrapping it in IO.fromFutureF.