allEffects

Returns all effect transmissions of the specified type.

This is useful for asserting on multiple effect emissions of the same type.

Return

List of all effect transmissions of type T

Example:

val allLogEvents = allEffects<LoggingEffect>()
assertTrue(allLogEvents.any { it.level == LogLevel.ERROR })

Parameters

T

The type of effect to retrieve