Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Testing Guide

Contracts

cd contracts
forge test --offline

If your Foundry environment is stable without external signature lookup issues, forge test is also fine.

SDK unit/integration

cd sdk
npm test

SDK end-to-end

cd sdk
npm run test:e2e

This script runs local Anvil + contract deploy + full flow tests.

Circuit tests

cd circuits/zkjwt
nargo test

Suggested CI order

  1. Contracts tests
  2. SDK build + unit/integration tests
  3. Circuit tests
  4. SDK e2e tests