@xemahq/biome-test-utils
v10.0.0
Published
Vitest-friendly harness for first-party and third-party biome tests: in-memory biome-storage stub, canonical webhook envelope fixtures per AdapterKind, ConnectorAdapterModule dry-run runner, and platform context builders. Pure types + utilities — no NestJ
Readme
@xemahq/biome-test-utils
Test harness and fixtures for biome authors
Overview
A Vitest-friendly harness for testing first-party and third-party biomes. It provides an in-memory storage stub, canonical webhook envelope fixtures keyed by adapter kind, a dry-run runner for an integration provider module, and platform context builders. It is pure types and utilities — no NestJS, no I/O — so tests run fast and deterministically.
When to use it
- Use it in a biome's test suite to exercise webhook handling and provider modules against canonical fixtures without standing up real infrastructure.
Installation
pnpm add -D @xemahq/biome-test-utilsUsage
import { runProviderDryRun } from '@xemahq/biome-test-utils';
// Drive a provider module end-to-end against an in-memory request,
// then assert on the returned outcome:
const outcome = await runProviderDryRun(myProviderModule, dryRunInput);License
Business Source License 1.1 (BSL-1.1) — source-available; converts to MPL-2.0 four years after each release. © Xema — xema.dev. See the repository LICENSE.
