Loki
Loki copied to clipboard
Add UnitTest for ViewModel about `@Published` properties.
Motivation
By introducing unit tests, you can check whether State changes are being executed correctly. Fortunately, the Repository class has a structure that allows you to create a Mock based on the Protocol.
Idea
For Example, I think the following ideas for utilizing OSS are effective.
Appendix
You may also refer to the UnitTest example of the @Published property part in the architecture using Redux that I implemented earlier.
なるほど、ViewModel の単体テストについての Issue なのですね…ありがとうございます! 時間があるときに頑張ってみます…!