effect-testing-mocking
Installation
SKILL.md
Testing & Mocking
When to use
- You need deterministic tests without external IO
- You want to inject mock services via layers
Mock Layer
const RepoTest = Layer.succeed(Repo, Repo.of({ find: () => Effect.succeed(mock) }))
Provide Test Impl
const result = yield* Effect.provide(program, RepoTest)