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)
Installs
32
GitHub Stars
5
First Seen
Jan 23, 2026
effect-testing-mocking — mepuka/effect-ontology