Turbine — small Kotlin testing library for kotlinx.coroutines Flows. Provides
ergonomic API to test Flow emissions deterministically: awaitItem, expectMostRecentItem,
awaitComplete, awaitError. Works with StateFlow, SharedFlow, Channel-backed flows,
combine/map/debounce. KMP-friendly.
USE WHEN: user mentions "Turbine", "app.cash.turbine", ".test {}",
"awaitItem", "Flow testing", "StateFlow test", "SharedFlow test",
"expectMostRecentItem", "cancelAndIgnoreRemainingEvents"
DO NOT USE FOR: Mobile E2E - use `testing/maestro`
DO NOT USE FOR: Compose snapshot - use `testing/compose-snapshot`
DO NOT USE FOR: Generic Kotlin testing - use `testing/kotest`
DO NOT USE FOR: Suspend function (non-Flow) testing - use `kotlinx-coroutines-test` directly