zio / zio-mock

https://zio.dev/zio-mock
Apache License 2.0
27 stars 33 forks source link

Outdated Documentation on Layer for Mocked Systems. #37

Closed JoaquinIglesiasTurina closed 1 year ago

JoaquinIglesiasTurina commented 1 year ago

The documentation on the compose layer for mocking collaborators uses deprecated syntax to build ZLayer.

The correct syntax can be found here.

I can take care of fixing this bit.

I'm also having issues on the compose when I need to access the Runtime through withRuntime. As in this example. The methods called on rts here are outdated. But I my troubles are going beyond that.

I do not have the knowledge to handle this second case on my own. I've managed to get my mocks running without using withRuntime, just throwing Runtime.default into a val. It's unclear to me this is the correct approach.