Testing SDK
Mock LLM APIs, real-runtime mock-attached helpers, and CLI harnesses for deterministic SNA integration tests.
Testing SDK
@sna-sdk/testing exists so tests do not need real Anthropic, OpenAI, xAI, or Claude accounts. It provides local Anthropic-compatible and OpenAI-compatible API servers, helpers for running real runtime CLIs against those mocks, and a CLI wrapper that isolates configuration and logs per instance.
Use it for smoke tests, runtime-adapter tests, mock-attached CLI contract tests, and UI flows that need predictable agent output.
Install
pnpm add @sna-sdk/testing@0.17.2