To be sure new code won’t break old one already implemented, itโs best practice to write unit tests. When it comes to app architectures, it can be a challenge to write those tests. Following an MVVM pattern, how to unit test a view and its viewModel? Thatโs what I would like to cover here using dependency injection.