the architecture, but also write integration tests for features that have been composed of many parts, and write end-to-end tests to understand how side effects influence your application. This allows you to make strong guarantees that your business logic is running in the way you expect. https://github.com/pointfreeco/swift-composable-architecture 基本的なテストの⽅針: ReducerのStateの変更ロジックが正しく実⾏されているかテストする
password = "" var loginSucceeded = false } enum LoginAction: Equatable { case emailChanged(String) case passwordChanged(String) case loginButtonTapped case login(Result<Bool, LoginClient.Failure>) } struct LoginEnvironment { let loginClient: LoginClient let mainQueue: AnySchedulerOf<DispatchQueue> }