{"repo":"kevinheavey/solana-bankrun","free":true,"listed":false,"github":"https://github.com/kevinheavey/solana-bankrun","clone":"git clone https://github.com/kevinheavey/solana-bankrun.git","description":"Superfast Solana Tests for Node.js","language":"Rust","stars":163,"topics":["blockchain","nodejs","solana","testing"],"license":"Apache-2.0","category":"blockchain-web3","readme_excerpt":"--- Bankrun (deprecated) DEPRECATED: use LiteSVM instead. Bankrun is a superfast, powerful and lightweight framework for testing Solana programs in NodeJS. While people often use solana-test-validator for this, bankrun is orders of magnitude faster and far more convenient. You can also do things that are not possible with solana-test-validator , such as jumping back and forth in time or dynamically setting account data. If you've used solana-program-test you'll be familiar with bankrun , since that's what it uses under the hood. For those unfamiliar, bankrun and solana-program-test work 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 author thought solana-program-test was a boring name, so he chose bankrun instead (you're running Solana Banks). Minimal example This example just transfers lamports from Alice to Bob without loading any programs of our own. It uses the jest test runner but you can use any test runner you like. Note: If you have multiple test files you should disable parallel tests using the --runInBand Jest flag for now. There is an open issue where concurrent Jest tests occasionally fail due to the program name getting garbled. Note: The underlying Rust process may print a lot of logs. You can control these with the RUST LOG environment variable. If you want to silence these logs your test command would look like RUST LOG= jest --runInBand . Some things to note here: The co","default_branch":null,"files":null,"tree":[],"storefront":"/r/kevinheavey","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kevinheavey/solana-bankrun/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}