I just launched Social SDK. Come check it out →
Email SDK
Guides

Test email behavior

Assert normalized messages, retries, fallback routes, and lifecycle events without sending real email.

The testing entry point provides an in-memory adapter and a configurable failing adapter.

Capture a successful send

memory.raw.clear() resets the store.

Prove fallback behavior

Fallback advances automatically only after a not_sent failure.

Use delivery: "unknown" to prove the default route stops instead of risking a duplicate.

Prove retry counts

maxAttempts is the total call count. Set delay: () => 0 in tests.

Capture lifecycle events

Use capturePlugin() when a test needs ordered beforeSend, retry, afterSend, and error records.

Keep telemetry off

The repository test preload sets EMAIL_SDK_TELEMETRY=0. Application tests can also construct clients with telemetry: false.

Capture plugin

Inspect complete lifecycle events through a typed client property.

On this page