According to the doc [Testing your Compose layout][1], we can disable transition as following:

@get:Rule
val composeTestRule = AndroidComposeTestRule<MyActivity>(disableTransitions = true)

However, there's no such parameter available in AndroidComposeTestRule. Testing with Snackbars is failing using SnackbarHost since it has animations. Is there a way to disable transitions?

Source: View source