Skip to content

Migrate JS tests from local validator to LiteSVM#65

Merged
lorisleiva merged 1 commit into
mainfrom
loris/litesvm
May 18, 2026
Merged

Migrate JS tests from local validator to LiteSVM#65
lorisleiva merged 1 commit into
mainfrom
loris/litesvm

Conversation

@lorisleiva
Copy link
Copy Markdown
Member

This PR replaces the local validator with LiteSVM for the JS test suite: swaps solanaLocalRpc() for litesvm() in _setup.ts, fabricates loader-v3 program/programData accounts directly via client.svm.setAccount(...) in createDeployedProgram, deletes the now-unused test/loader-v3/ helpers and the validator:* scripts, and drops solana: true from the CI test job. Tests now run ~47× faster (~600ms vs ~28s) with no validator required.

This PR replaces the local validator with [LiteSVM](https://github.com/LiteSVM/litesvm) for the JS test suite: swaps `solanaLocalRpc()` for `litesvm()` in `_setup.ts`, fabricates loader-v3 program/programData accounts directly via `client.svm.setAccount(...)` in `createDeployedProgram`, deletes the now-unused `test/loader-v3/` helpers and the `validator:*` scripts, and drops `solana: true` from the CI test job. Tests now run ~47× faster (~600ms vs ~28s) with no validator required.
@lorisleiva lorisleiva merged commit b8821f4 into main May 18, 2026
9 checks passed
@lorisleiva lorisleiva deleted the loris/litesvm branch May 18, 2026 17:01
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