Skip to content

Commit 8e0879b

Browse files
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` test
1 parent 2cbc41f commit 8e0879b

File tree

7 files changed

+324
-154
lines changed

7 files changed

+324
-154
lines changed

basics/close-account/anchor/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
},
66
"dependencies": {
77
"@coral-xyz/anchor": "0.32.1",
8-
"@solana/web3.js": "^1.95.2"
8+
"@solana/web3.js": "^1.98.4",
9+
"litesvm": "^0.4.0"
910
},
1011
"devDependencies": {
1112
"@types/bn.js": "^5.1.0",

basics/close-account/anchor/pnpm-lock.yaml

Lines changed: 152 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)