android / android/codelab-android-compose

[TestingCodelab] (Optional Exercise): How to access state in RallyApp

Abierto
#238 7 comentarios 0 reacciones 1 asignado Reclamado por @JoseAlcerreca Ver en GitHub
Lenguaje dominante
Kotlin
Estrellas
1.7k
Forks
799
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hi, in the hints for Step 7, it says
> The scope of the test needs to include the state, which is owned by `RallyApp`.

I looked at the implementation of `RallyApp`, and I can see that the state is stored _inside_ the component, so I don't know how I can access it to assert on its value.

Am I supposed to modify the `RallyApp` component to move the state elsewhere, and if so, where? In a ViewModel?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.