Skip to main content

Offline Testing

Run the full suite with:
node --test --experimental-strip-types tests/offchain/*.test.ts

Covered areas

Test fileCoverage
backtest.test.tsBacktest scenario replay
drift-adapter.test.tsDrift deterministic fixture envelopes
kamino-adapter.test.tsKamino deterministic fixture envelopes
manifest-adapter.test.tsManifest loading, fallback, validation
solver.test.tsSolver constraints and paused strategy behavior
ranger.test.tsIdempotency and approved-step execution
vault-program.test.tsAnchor-compatible execute-plan hashing
vault-ops.test.tsVault serialization, decoding, and builder logic
vault-cli.test.tsCLI fail-fast behavior with missing envs

What offline tests do not prove

They do not prove:
  • cluster connectivity
  • wallet balances
  • deployed program executability
  • protocol settlement on-chain
  • production manifests for MarginFi and Perena