Skip to content
PackagesTooling and testingDocs 1.3.x

@connectum/testing

Supported service-test helpers, local clients, parity scenarios, in-memory telemetry collectors, and assertions.

Install

bash
npm install -D @connectum/testing
bash
pnpm add -D @connectum/testing
bash
bun add -d @connectum/testing

Start 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 pointUse it to
createTestServerCreate an isolated Connectum server for a test.
withTestServerManage test-server setup and teardown.
createLocalClientExercise handlers through the in-process transport.

Runtime boundaries and extension seams remain in Connectum Runtime Architecture.

Learn / Configure / API Reference

Compare all Connectum packages by capability.