@connectum/testing
Supported service-test helpers, local clients, parity scenarios, in-memory telemetry collectors, and assertions.
Install
bash
npm install -D @connectum/testingbash
pnpm add -D @connectum/testingbash
bun add -d @connectum/testingStart Here
typescript
import { createClient } from '@connectrpc/connect';
import { withTestServer } from '@connectum/testing';
await withTestServer({ services: [greeterService] }, async (server) => {
const client = createClient(GreeterService, server.transport);
const response = await client.sayHello({ name: 'Ada' });
});For a complete, source-verified workflow, continue with the focused guide below.
Key Entry Points
| Entry point | Use it to |
|---|---|
createTestServer | Create an isolated Connectum server for a test. |
withTestServer | Manage test-server setup and teardown. |
createLocalClient | Exercise handlers through the in-process transport. |
Runtime boundaries and extension seams remain in Connectum Runtime Architecture.
Learn / Configure / API Reference
- Learn: Focused guide
- Configure: Task and configuration guidance
- API reference: Exact options and symbols
- Package API index: Generated TypeDoc
- Source: @connectum/testing on GitHub
Related Modules
Compare all Connectum packages by capability.