Skip to main content
The simplest tests call procedures directly with .callable().

Test a callable procedure

users.test.ts

Test request context

If the procedure requires context, pass callable options according to your oRPC setup.
context.test.ts

Test Effect errors

errors.test.ts

Test through HTTP only when needed

Use direct procedure tests for business logic. Add HTTP tests when you need to verify framework mounting, headers, CORS, serialization, or OpenAPI routes.

Repository examples

The package test suite in packages/effect-orpc/src/tests is a good source of low-level examples for builder behavior, contracts, tagged errors, and runtime boundaries.
Last modified on June 15, 2026