> ## Documentation Index
> Fetch the complete documentation index at: https://pessoal-86816071.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Offline Testing

> What the offline suite covers and how to run it.

# Offline Testing

Run the full suite with:

```bash theme={null}
node --test --experimental-strip-types tests/offchain/*.test.ts
```

## Covered areas

| Test file                  | Coverage                                         |
| -------------------------- | ------------------------------------------------ |
| `backtest.test.ts`         | Backtest scenario replay                         |
| `drift-adapter.test.ts`    | Drift deterministic fixture envelopes            |
| `kamino-adapter.test.ts`   | Kamino deterministic fixture envelopes           |
| `manifest-adapter.test.ts` | Manifest loading, fallback, validation           |
| `solver.test.ts`           | Solver constraints and paused strategy behavior  |
| `ranger.test.ts`           | Idempotency and approved-step execution          |
| `vault-program.test.ts`    | Anchor-compatible execute-plan hashing           |
| `vault-ops.test.ts`        | Vault serialization, decoding, and builder logic |
| `vault-cli.test.ts`        | CLI 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`
