import ComposableArchitecture import XCTest @testable import SyncUps class SyncUpDetailTests: XCTestCase { func testDelete() async { let syncUp = SyncUp( id: SyncUp.ID(), title: "Point-Free Morning Sync" ) let store = await TestStore(initialState: SyncUpDetail.State(syncUp: Shared(syncUp))) { SyncUpDetail() } await store.send(.deleteButtonTapped) { $0.destination = .alert(.deleteSyncUp) } await store.send(.destination(.presented(.alert(.confirmButtonTapped)))) { $0.destination = nil } // ❌ The store received 1 unexpected action after this one: … // // Unhandled actions: // • .delegate(.deleteSyncUp) } func testEdit() async { // ... } }