@canton-vc/adapter-mock
v0.3.0
Published
Deterministic mock KycProvider for testing and local development. Drop-in replacement for real adapters in CI, integration tests, and demo deployments. Approves, declines, or holds in review based on configurable rules.
Maintainers
Readme
@canton-vc/adapter-mock
Deterministic mock KycProvider implementation for tests and local development. No network calls, no external dependencies — drop in for CI runs, integration tests, and demo deployments.
import { MockKycProvider } from '@canton-vc/adapter-mock';
const kyc = new MockKycProvider({
// Rule-based response config — every test gets deterministic output.
defaultStatus: 'approved',
});See the canton-vc repository for the production adapter family (Didit, Sumsub, Persona).
License
Apache 2.0 — see LICENSE.
