2.00K
total weekly downloads
8 packages
@deployagram/api
Types for Deployagram logs, Kafka bodies, test runs and the DiagramLogger interface. Types only; no runtime dependencies.
@deployagram/core
The framework-neutral part of the Deployagram test helpers: start or reuse the environment, post proxy configuration, and mark each test's end. Test framework adapters, such as @deployagram/vitest, build on it.
@deployagram/environment
Finds or starts the Deployagram Collector and HTTP Proxy for Node.js tests: reuses a running one (by URL or Docker image), otherwise starts it with testcontainers.
@deployagram/kafkajs
Reports the Kafka records a kafkajs consumer reads to the Deployagram Collector, as the Java Kafka consumer interceptor does. Wrap the consumer's eachMessage handler.
@deployagram/logger-client
HTTP client for the Deployagram Collector (living-http-logger), built on fetch. Node.js 22+.
@deployagram/msw
Records HTTP calls intercepted by MSW (Mock Service Worker) and sends them to the Deployagram Collector, in the same format as the Deployagram HTTP Proxy. Use it instead of the Proxy when tests stub HTTP with MSW.
@deployagram/nock
Records the HTTP calls that a Nock scope intercepts, and sends each request and response to the Deployagram Collector, in the same format as the Deployagram HTTP Proxy. Use it instead of the Proxy when tests stub HTTP with Nock.
@deployagram/vitest
Vitest helpers that instrument service tests with Deployagram: start or reuse the environment, post proxy configuration before each test, and mark each test's end. The Node.js equivalent of deployagram-annotations-junit5.