Skip to main content
Golden testing is an engine CLI operation:
nika test runs the workflow on the mock provider and compares its typed outputs: with <file>.golden.json. --case <name> --var key=value pins one golden per case of a rule table (Testing). The SDK does not duplicate that command as a client method: run it from ./node_modules/.bin/nika in CI. Receipt verification is part of the SDK because it belongs to the run lifecycle.
traceVerify(receipt) accepts an engine-issued NikaReceipt object only. It does not accept a path and does not reconstruct or verify the chain in TypeScript. The engine reads the existing journal and its evidence. Verification does not seal a trace, and an admitted job does not guarantee a journal exists.

Receipts

Store proof beside application state.

Testing guide

Learn goldens and mock-provider workflows.