Component - Unit testing ViewModels
This UI component shows a simple ViewModel with a counter and a button to increment it. Unit testing ensures the ViewModel logic works correctly without UI interaction.
This UI component shows a simple ViewModel with a counter and a button to increment it. Unit testing ensures the ViewModel logic works correctly without UI interaction.
ViewModelTestView ├── Text (shows counter value) └── Button (increments counter)