Skip to content

chore(tests-sdk): use shared validator ledger at $HOME/test-ledger - #54

Merged
onspeedhp merged 1 commit into
mainfrom
chore/docs-refresh
May 6, 2026
Merged

onspeedhp merged 1 commit into
mainfrom
chore/docs-refresh

Conversation

@onspeedhp

Copy link
Copy Markdown
Member

Summary

`solana-test-validator` defaults to creating `test-ledger/` in cwd, so each repo keeps its own ~150 MB ledger. Switch the `validator:start` script to `--ledger "$HOME/test-ledger"` so this repo and the sibling `lazorkit-protocol` repo share one location.

Also exposes a `validator:stop` helper for symmetry — already present in `lazorkit-protocol`'s tests-sdk.

The `--reset` flag wipes the ledger on every run, so sequential test runs across repos still start from a fresh state — there's no cross-contamination risk from sharing.

Test plan

  • `npm run validator:start` creates / wipes `$HOME/test-ledger`, not `tests-sdk/test-ledger`
  • `npm test` passes (65/65 tests on a freshly built devnet binary)

solana-test-validator defaults to creating test-ledger/ in cwd, which
means a separate ~150-300 MB ledger per repo. Point both repos at
$HOME/test-ledger (sibling to ~/Documents) so they share one. The
--reset flag wipes between runs anyway, so sequential test runs across
repos still get a fresh state.

Also exposes a validator:stop script for symmetry.
@onspeedhp onspeedhp closed this May 6, 2026
@onspeedhp
onspeedhp deleted the chore/docs-refresh branch May 6, 2026 15:36
@onspeedhp
onspeedhp restored the chore/docs-refresh branch May 6, 2026 15:37
@onspeedhp onspeedhp reopened this May 6, 2026
@onspeedhp
onspeedhp merged commit 0c68439 into main May 6, 2026
6 checks passed
@onspeedhp
onspeedhp deleted the chore/docs-refresh branch May 6, 2026 15:46
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