mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-20 09:11:33 +01:00
* Fix a bunch of DocC references. * wip * doc fix * issue message fix * swift-navigation 2.0.5
1.3 KiB
1.3 KiB
ComposableArchitecture/TestStore
Topics
Creating a test store
init(initialState:reducer:withDependencies:fileID:file:line:column:)TestStoreOf
Configuring a test store
dependenciesexhaustivitytimeoutuseMainSerialExecutor
Testing a reducer
send(_:assert:fileID:file:line:column:)-8f2plsend(_:assert:fileID:file:line:column:)-8877xsend(_:_:assert:fileID:file:line:column:)receive(_:timeout:assert:fileID:file:line:column:)-8zqxkreceive(_:timeout:assert:fileID:file:line:column:)-35638receive(_:timeout:assert:fileID:file:line:column:)-53wicreceive(_:_:timeout:assert:fileID:file:line:column:)-9jd7xassert(_:fileID:file:line:column:)finish(timeout:fileID:file:line:column:)-klncisDismissedTestStoreTask
Skipping actions and effects
skipReceivedActions(strict:fileID:file:line:column:)skipInFlightEffects(strict:fileID:file:line:column:)
Accessing state
While the most common way of interacting with a test store's state is via its
send(_:assert:fileID:file:line:column:)-8f2pl and
receive(_:timeout:assert:fileID:file:line:column:)-53wic methods, you may also access it
directly throughout a test.
state
Supporting types
TestStoreOf