Commit 8e0879b
authored
Add LiteSVM Tests for Close Account (Anchor) (#470)
* feat: add LiteSVM tests for closing an account in Anchor program
* chore: update dependencies in package.json and pnpm-lock.yaml
- Add litesvm dependency with version 0.4.0
- Upgrade @solana/web3.js to version 1.98.4
- Update related dependencies in pnpm-lock.yaml to reflect changes
* refactor: clean up imports in LiteSVM test
- Anchor tests natively use Mocha, so replaced unnecessary `node:test` usage with Mocha and Chai for consistency.
* chore: update TypeScript configuration for close-account anchor
- Upgrade TypeScript compiler options to target ES2020 and use nodenext module resolution.
- Enable JSON module resolution for improved compatibility.
* fix: update LiteSVM close account test transaction instruction to match IDL
- Removed unnecessary SystemProgram reference from transaction instruction keys for clarity and correctness.
* refactor: replace `node:assert` with `chai` in tests (default for Anchor)
* chore: remove deprecated `bankrun` test1 parent 2cbc41f commit 8e0879b
File tree
7 files changed
+324
-154
lines changed- basics/close-account/anchor
- tests
7 files changed
+324
-154
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments