-
Notifications
You must be signed in to change notification settings - Fork 490
Add LiteSVM Test for Anchor Account Data Example #466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add LiteSVM Test for Anchor Account Data Example #466
Conversation
|
Thanks for this, I ran the tests locally and they work. Could you remove the bankrun tests(bankrun is depreciated) and also your comments on litesvm.test.ts::97 and anchor.toml::17 |
|
@Perelyn-sama Thanks for the quick review! 🙌🏼 @jacobcreech Please let me know if anything else needs adjustment — happy to refine further 🙌🏼. I’d also love to continue contributing to more examples to write litesvm tests for anchor in this repo. If you have any suggestions, I really appreciate it. |
| [scripts] | ||
| test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts" | ||
| test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts" #For all test | ||
| litesvm-test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/litesvm.test.ts" #For litesvm test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just the test script is fine since we only have litesvm tests
remove the #For all test comment too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated - The comment has been removed.
Overview
This PR introduces LiteSVM based testing for the
basics/account-data/anchorexample.It adds the LiteSVM dependency, test script entries, and a full test file covering account data operations.
Changes Included
tests/litesvm.test.tsMotivation
LiteSVM offers a lightweight fast and modern testing environment. Many developers prefer writing tests using LiteSVM.
I hope this addition helps contributors and learners explore multiple testing approaches for Anchor programs.
Request
@jacobcreech Kindly review the changes at your convenience.
I’m happy to revise or improve anything based on your feedback.
Thank you for your time and consideration 🙌🏼