Effect CommunityEC
Effect Community3mo ago
1 reply
stanisław

Testing / Mocking flow help

Hi, I recently started creating effect services and I've a service that looks like this and is used by other services. I'd like to have a testable code - how should I solve this problem? Do I create a AnimalServiceTest impl - If so do I create TestFail and TestSuccess ? Do I skip this HttpClient and ConfigError or what's the proper way of testing it and mocking it so I can reuse mocked ones in tests of services that depend on this AnimalService?
Was this page helpful?