@faremeter/test-harness
v0.17.0
Published
In-process test harness for x402 protocol testing
Readme
@faremeter/test-harness
In-process test harness for x402 protocol testing without network calls.
Installation
pnpm install @faremeter/test-harnessFeatures
- In-process testing - No network calls or external services
- Interceptor pattern - Inject failures, delays, and custom responses
- Composable - Combine interceptors for complex scenarios
- Test scheme - Simple payment scheme for protocol validation
- Framework agnostic - Works with any test runner
API Reference
Examples
See integration tests in the faremeter repository:
Related Packages
- @faremeter/fetch - Client-side fetch wrapper
- @faremeter/middleware - Server-side middleware
- @faremeter/facilitator - Payment facilitator service
License
LGPL-3.0-only
