JavaScript Testing Framework for Solana
This is a beta version of the Solana Toolkit, and is still a WIP. Please post all feedback as a GitHub issue here.
Add Dependency
Navigate to your program directory and run:
Bankrun Overview
Bankrun is a fast and lightweight framework for testing Solana programs in NodeJS.
It uses the
solana-program-test
crate
under the hood and allows you to do things that are not possible with
solana-test-validator
, such as jumping back and forth in time or dynamically
setting account data.
Bankrun works by spinning up a lightweight BanksServer
that's like an RPC node
but much faster, and creating a BanksClient
to talk to the server. This runs
the Solana
Banks.
Minimal Example
Additional Resources
Last updated on