EffectTalk

Testable services

Services that declare requirements are inherently testable. You provide a `Layer` that satisfies the interface - no stubs, no mocks.

The type system ensures your test implementation matches the interface.

  • Create a layer with your test values
  • Use `Service.of(impl)` for the implementation
  • Provide at the edge - tests or main
Loading code editor...