diff --git a/Sources/TestSupport/Mocked.swift b/Sources/TestSupport/Mocked.swift index 5611f9e1..f2966c82 100644 --- a/Sources/TestSupport/Mocked.swift +++ b/Sources/TestSupport/Mocked.swift @@ -27,6 +27,10 @@ struct Mocked: NetworkingModifier { self.stub = stubbedResponse } + func resolve(upstream: NetworkingComponent, request: HTTPRequestData) -> HTTPRequestData { + request // Note: We actually do not want to resolve the request to be mocked + } + func send(upstream: NetworkingComponent, request: HTTPRequestData) -> ResponseStream< HTTPResponseData > { @@ -55,6 +59,10 @@ extension NetworkingComponent { struct CustomMocked: NetworkingModifier { let block: @Sendable (NetworkingComponent, HTTPRequestData) -> ResponseStream + func resolve(upstream: NetworkingComponent, request: HTTPRequestData) -> HTTPRequestData { + request // Note: We actually do not want to resolve the request to be mocked + } + func send(upstream: NetworkingComponent, request: HTTPRequestData) -> ResponseStream< HTTPResponseData > {