In-process test harness for x402 protocol testing
npm install @faremeter/test-harnessIn-process test harness for x402 protocol testing without network calls.
``bash``
pnpm install @faremeter/test-harness
- 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
See integration tests in the faremeter repository:
- Success flow
- Verification failures
- Settlement failures
- @faremeter/fetch - Client-side fetch wrapper
- @faremeter/middleware - Server-side middleware
- @faremeter/facilitator - Payment facilitator service
LGPL-3.0-only