Loki icon indicating copy to clipboard operation
Loki copied to clipboard

Add UnitTest for ViewModel about `@Published` properties.

Open fumiyasac opened this issue 1 year ago • 1 comments

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.

fumiyasac avatar Sep 01 '23 16:09 fumiyasac

なるほど、ViewModel の単体テストについての Issue なのですね…ありがとうございます! 時間があるときに頑張ってみます…!

uhooi avatar Sep 14 '23 06:09 uhooi