From 11184dfa8c6dca98232f599e9d74c0278e207fc6 Mon Sep 17 00:00:00 2001 From: Stephen Celis Date: Mon, 22 Jan 2024 22:33:07 -0800 Subject: [PATCH] Update TestStore.swift (#2720) --- Sources/ComposableArchitecture/TestStore.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/ComposableArchitecture/TestStore.swift b/Sources/ComposableArchitecture/TestStore.swift index 14b93c2b21ec..0e2f4980e41c 100644 --- a/Sources/ComposableArchitecture/TestStore.swift +++ b/Sources/ComposableArchitecture/TestStore.swift @@ -933,13 +933,15 @@ extension TestStore where State: Equatable { /// ), which allow you to assert on a subset of the things /// happening inside your features. For example, you can send an action in a child feature /// without asserting on how many changes in the system, and then tell the test store to - /// ``finish(timeout:file:line:)-53gi5`` by executing all of its effects and receiving all - /// actions. After that is done you can assert on the final state of the store: + /// ``finish(timeout:file:line:)-53gi5`` by executing all of its effects, and finally to + /// ``skipReceivedActions(strict:file:line:)-a4ri`` to receive all actions. After that is done you + /// can assert on the final state of the store: /// /// ```swift /// store.exhaustivity = .off /// await store.send(.child(.closeButtonTapped)) /// await store.finish() + /// await store.skipReceivedActions() /// store.assert { /// $0.child = nil /// }