Skip to content

Conversation

@sol-warrior
Copy link
Contributor

Adds LiteSVM-based test suite for the create-account Anchor program, providing a lightweight alternative testing approach alongside existing Anchor tests.

Changes

  • Add LiteSVM test suite tests/litesvm.test.ts covering system account creation with rent exemption validation
  • Add litesvm (^0.4.0) dependency
  • Remove deprecated bankrun test file and its dependencies - solana-bankrun and anchor-bankrun
  • Correct test description and import path for type error

Testing

All tests pass:

  • ✅ LiteSVM: Create a system account (1 test)
  • ✅ Anchor: Create a system account (1 test)

@jacobcreech Please take a look when you get a moment. Thank you! 🙌🏼

- Implement test for creating a system account using LiteSVM
- Include transaction creation and assertion for account lamports
… and pnpm-lock.yaml

- Upgrade @solana/web3.js from ^1.95.2 to ^1.98.4
- Add litesvm dependency with version ^0.4.0
- Update lockfile to reflect changes in dependencies and their versions
- Change target and module to es2020 and nodenext
- Update lib to es2020 for improved compatibility
- Delete bankrun.test.ts as it is no longer needed
- Remove anchor-bankrun and solana-bankrun dependencies from package.json and pnpm-lock.yaml
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