Mocking any value as input parameter with ZIO Test

967 Views Asked by At

I mock the following function:

def deploy(deployRequest: DeployRequest, mergeResults: Seq[MergeResult]): Task[Deployment]

For the result I don't care for the inputs. So my question, is there a Way to achieve this with zio.test.mock.

Something like:

ProcessEngineMock.Deploy(any, any) returns value(deployment)

(deployment is the output)

1

There are 1 best solutions below

1
On BEST ANSWER

Assertion.anything should do the work