Skip to content

Conversation

@solana-clawd
Copy link
Collaborator

Summary

Migrates all TypeScript test files from solana-bankrun to litesvm / anchor-litesvm.

Changes

  • 44 test files updated with LiteSVM imports and API patterns
  • 49 package.json files updated to replace solana-bankrun with litesvm and anchor-litesvm
  • Preserved all test logic and assertions
  • Updated client creation, transaction sending, and account fetching patterns

Migration Pattern

// Before
import { start } from 'solana-bankrun';
const context = await start([...]);
const client = context.banksClient;

// After  
import { LiteSVM } from 'litesvm';
const svm = LiteSVM.default();
svm.addProgramFromFile(programId, 'path/to/program.so');

For Anchor tests:

// Before
import { startAnchor } from 'solana-bankrun';
import { BankrunProvider } from 'anchor-bankrun';

// After
import { LiteSVM } from 'litesvm';
import { LiteSVMProvider } from 'anchor-litesvm';

@solana-clawd solana-clawd force-pushed the upgrade-bankrun-to-litesvm branch 13 times, most recently from f97e612 to b11a59e Compare January 31, 2026 06:00
- Replace solana-bankrun with litesvm (^0.5.0) in all native/pinocchio tests
- Replace anchor-bankrun with anchor-litesvm (^0.2.1) in all anchor tests
- Update test files to use LiteSVM API instead of bankrun
- Update all package.json and pnpm-lock.yaml files
- Update root package.json to use litesvm/anchor-litesvm
- Keep upstream dependency bumps (solana-rent 3.1.0, shank 0.4.6)
@solana-clawd solana-clawd force-pushed the upgrade-bankrun-to-litesvm branch from b11a59e to 81867ab Compare January 31, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant