@privora/test-utils-ts package provides shared utilities for testing Privora applications in TypeScript.
Installation
Quick Start
Constants
getRpcUrl
RPC_URL environment variable, or falls back to DEFAULT_RPC_URL.
getAirdropAmount
AIRDROP_AMOUNT environment variable, or falls back to DEFAULT_AIRDROP_LAMPORTS.
Sequencer Utilities
requireSequencer
waitForSequencer
checkSequencerHealth
rpcCall
Funded Account Utilities
createFundedAccount
requestAirdrop
getBalance
getTestKeypair
getTestKeypairWithSeed
Program Deployment
deployProgram
.so file.
buildProgram
cargo build-sbf. Returns true if successful.
buildAndDeploy
findExamplesRoot
Vitest Configuration
The package provides a base Vitest configuration optimized for FHE tests:- 60-second test timeout for FHE operations
- 30-second hook timeout
- Sequential test execution (no shuffling)
- Single fork mode for WASM stability
- Verbose reporter