Skip to content

Migrate JS tests to a Kit client and LiteSVM#158

Merged
lorisleiva merged 1 commit into
mainfrom
loris/litesvm
Jun 5, 2026
Merged

Migrate JS tests to a Kit client and LiteSVM#158
lorisleiva merged 1 commit into
mainfrom
loris/litesvm

Conversation

@lorisleiva
Copy link
Copy Markdown
Member

This PR migrates the token JS client tests to a Kit plugin client and runs them on LiteSVM in-process instead of a local validator. The _setup builds a single client via createClient().use(...) with the system, token, and associated-token program plugins, loading the token .so into LiteSVM (the system and associated-token programs are LiteSVM builtins).

The tests now lean into the program plugin throughout: instructions are built and sent via client.token.instructions.X(...) (and the createMint/mintToATA/transferToATA plan helpers), the redundant per-test payer keypair is dropped in favour of client.payer, and the plugin.test.ts file is folded into the relevant domain test files. The validator script and Makefile targets are removed, and a pre-existing Makefile pattern-ordering issue is fixed so make test-js-clients-js resolves to the JS rule. clients/js-legacy is left untouched.

@lorisleiva lorisleiva marked this pull request as ready for review June 5, 2026 11:50
@lorisleiva lorisleiva merged commit 26abb3f into main Jun 5, 2026
29 checks passed
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