@begryp/blog-automation-testing
v0.2.9
Published
In-memory test fakes and contract test suites for blog-automation ports.
Readme
@begryp/blog-automation-testing
In-memory test doubles (fakes), golden fixtures, and reusable hexagonal port contract test suites for the Begryp blog automation engine.
Features
- In-memory test doubles:
InMemoryPublisher,InMemoryRunStore,InMemoryKeyVault,FakeLLM. - Deterministic test primitives:
FakeClock,FakeIdGenerator,TestLogger. - Reusable contract test suites ensuring any adapter (in-memory, Payload CMS, Redis, etc.) fulfills port invariants:
runPublisherContractTestsrunRunStoreContractTestsrunKeyVaultContractTestsrunLLMClientContractTests
- Golden fixtures for tenant profiles, topics, and draft posts.
Usage
import {
InMemoryPublisher,
InMemoryRunStore,
InMemoryKeyVault,
FakeClock,
FakeIdGenerator,
TestLogger,
FAKE_TENANT,
FAKE_TOPIC
} from '@begryp/blog-automation-testing';