Help with understanding Effect.Service dependencies
I'm struggling to understand dependencies in
Test setup:
NB: I appreciate in the test I could use the
Effect.Service, which seem to require a different shape than when specified in a test. The test setup seems more logical, but in the Service dependencies I can't just list them as an array, but find in order for the DefaultPowerToolsLogger to apply to all of the other dependencies, I have to merge them all into a single layer.Test setup:
NB: I appreciate in the test I could use the
Default 'with dependencies' layer as the only difference is the injection of the ConfigProvider but what I'm struggling with is why the Layer.provide's produce a different result to the list of dependencies. How does Effect.Service under the hood treat the dependencies? (I tried searching the code base but couldn't find the relevant module).