Package-level declarations

Types

Link copied to clipboard
actual object Dejavu

Main entry point for enabling Dejavu's implicit recomposition tracking.

expect object Dejavu

Main entry point for enabling Dejavu's implicit recomposition tracking.

actual object Dejavu

Main entry point for enabling Dejavu's implicit recomposition tracking on iOS.

actual object Dejavu

Main entry point for enabling Dejavu's implicit recomposition tracking on Desktop (JVM).

actual object Dejavu

Main entry point for enabling Dejavu's implicit recomposition tracking on WasmJs.

Link copied to clipboard

A test rule that wraps AndroidComposeTestRule with automatic Dejavu lifecycle management. Enables Dejavu and resets recomposition counts before each test, so no @Before boilerplate is needed.

Functions

Link copied to clipboard
fun SemanticsNodeInteraction.assertRecompositions(exactly: Int? = null, atLeast: Int? = null, atMost: Int? = null): SemanticsNodeInteraction

Asserts the number of recompositions for the composable associated with this node.

Link copied to clipboard

Asserts that this composable was not recomposed (stable after initial composition). Convenience alias for assertRecompositions(exactly = 0).

Link copied to clipboard
@JvmName(name = "createRecompositionTrackingRuleForActivity")
inline fun <A : ComponentActivity> createRecompositionTrackingRule(): DejavuComposeTestRule<A>

Creates a DejavuComposeTestRule that automatically enables Dejavu and resets recomposition counts before each test. Drop-in replacement for createAndroidComposeRule.

Creates a DejavuComposeTestRule backed by a plain ComponentActivity. Drop-in replacement for androidx.compose.ui.test.junit4.createComposeRule with automatic Dejavu lifecycle management.

Link copied to clipboard

Returns the recomposition count for the composable identified by tag. Refreshes the tag-to-function mapping before lookup.

Link copied to clipboard

Resets recomposition counts to zero while preserving composition history.

Link copied to clipboard

Runs a recomposition-tracking UI test using runComposeUiTest.

Link copied to clipboard

Sets content wrapped with Dejavu's inspection tables and sub-composition layout.