Skip to content

Commit

Permalink
Update TestStore.swift (#2720)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis authored Jan 23, 2024
1 parent 5391a02 commit 11184df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sources/ComposableArchitecture/TestStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -933,13 +933,15 @@ extension TestStore where State: Equatable {
/// <doc:Testing#Non-exhaustive-testing>), 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
/// }
Expand Down

0 comments on commit 11184df

Please sign in to comment.