@scramjet/sequence-test
v2.1.0
Published
Test harness for Scramjet Transform Sequences using the runner protocol without starting a full Transform Hub. Supported for scoped local sequence fixture/harness validation.
Downloads
219
Readme
@scramjet/sequence-test
AVA-friendly helpers for testing Scramjet Transform Sequences from the sequence developer's point of view, using local fixtures and the hub harness without starting a full Transform Hub instance.
Scope: This package is supported for scoped local sequence fixture and hub-harness validation. It is not a full live Hub/process/Docker/Kubernetes parity replacement. For end-to-end host/process BDD coverage, use the bdd/ test suite.
Key features:
runSequence()— execute a Node sequence fixture and capture outputcreateHubHarness()— in-memory Hub/context simulation for lifecycle, events, logging, and API registration testsresolveSequenceFixtureMetadata()— validate fixture metadata from package.json
Supported public exports for AppContext fixture validation:
- Hub harness:
createHubHarness,createHubMock,createSequenceAssertions - Fixtures:
createSequenceFixture,createNodeSequenceFixture,resolveSequenceFixtureMetadata - Execution:
runSequence,createSequenceTest - Types:
HubHarness,HubMock,HubContext,HubCallMatch,SequenceFixture
See the generated package docs for detailed usage and examples.
Install
npm install @scramjet/sequence-testImport
import { /* ... */ } from "@scramjet/sequence-test";Documentation
See the package docs for full documentation.
