@@ -543,7 +543,7 @@ public final class TestStore<State, Action, ScopedState, ScopedAction, Environme
543
543
/// accessed during the test. These dependencies will be used when producing the initial
544
544
/// state.
545
545
public init < R: Reducer > (
546
- initialState: @autoclosure ( ) -> State ,
546
+ initialState: @autoclosure ( ) -> R . State ,
547
547
@ReducerBuilder < State , Action > reducer: ( ) -> R ,
548
548
withDependencies prepareDependencies: ( inout DependencyValues ) -> Void = { _ in
549
549
} ,
@@ -581,7 +581,7 @@ public final class TestStore<State, Action, ScopedState, ScopedAction, Environme
581
581
"""
582
582
)
583
583
public convenience init < R: Reducer > (
584
- initialState: @autoclosure ( ) -> State ,
584
+ initialState: @autoclosure ( ) -> R . State ,
585
585
@ReducerBuilder < State , Action > reducer: ( ) -> R ,
586
586
observe toScopedState: @escaping ( State ) -> ScopedState ,
587
587
withDependencies prepareDependencies: ( inout DependencyValues ) -> Void = { _ in } ,
@@ -615,7 +615,7 @@ public final class TestStore<State, Action, ScopedState, ScopedAction, Environme
615
615
"""
616
616
)
617
617
public init < R: Reducer > (
618
- initialState: @autoclosure ( ) -> State ,
618
+ initialState: @autoclosure ( ) -> R . State ,
619
619
@ReducerBuilder < State , Action > reducer: ( ) -> R ,
620
620
observe toScopedState: @escaping ( State ) -> ScopedState ,
621
621
send fromScopedAction: @escaping ( ScopedAction ) -> Action ,
@@ -656,7 +656,7 @@ public final class TestStore<State, Action, ScopedState, ScopedAction, Environme
656
656
/// state.
657
657
@available ( * , deprecated, message: " State must be equatable to perform assertions. " )
658
658
public init < R: Reducer > (
659
- initialState: @autoclosure ( ) -> State ,
659
+ initialState: @autoclosure ( ) -> R . State ,
660
660
@ReducerBuilder < State , Action > reducer: ( ) -> R ,
661
661
withDependencies prepareDependencies: ( inout DependencyValues ) -> Void = { _ in
662
662
} ,
0 commit comments