mvrx-mocking / com.airbnb.mvrx.mocking / MockableMavericksViewModelConfig / access

access

fun <S : MavericksState> access(viewModel: MavericksViewModel<S>): MockableMavericksViewModelConfig<S>

Allows access to the mock configuration of a ViewModel.

The config is not directly exposed to discourage use. It should only be carefully used in testing frameworks.

This assumes the viewmodel was created with a mock config applied, and fails otherwise.