You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Added a new sidebar entry under "Advanced" for quick access to
additional guidance.
- **Documentation**
- Introduced a new "Mocking" guide detailing approaches for creating
alternative implementations for testing.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
description: Easily mock your oRPC handlers for testing.
4
+
---
5
+
6
+
# Mocking
7
+
8
+
Mock your oRPC handlers with ease.
9
+
10
+
::: warning
11
+
This page is incomplete and may be missing important information.
12
+
:::
13
+
14
+
## Using the Implementer
15
+
16
+
The [Implementer](/docs/contract-first/implement-contract#the-implementer) is designed for contract-first development. However, it can also be used to create alternative versions of your [router](/docs/router) or [procedure](/docs/procedure) for testing purposes.
You can now use `fakeListPlanet` to replace `listPlanet`. Additionally, the `implement` function can be used to create a fake server for front-end testing.
27
+
28
+
::: warning
29
+
The `implement` function does not support the [lazy router](/docs/router#lazy-router) yet. Please use the `unlazyRouter` utility to convert your lazy router before implementing.
0 commit comments