Skip to content

Commit 231573d

Browse files
authored
Add LiteSVM tests for the PDA Rent Payer anchor program (#476)
* feat: add LiteSVM tests for PDA Rent-Payer * Implement tests for initializing the Rent Vault and creating new accounts using the Rent Vault. * Validate lamports in the Rent Vault and new accounts after transactions. * chore: update dependencies and TypeScript configuration for PDA Rent-Payer - Added litesvm dependency to package.json. - Adjusted import path for PdaRentPayer in test.ts to include the .ts extension. - Updated pnpm-lock.yaml to include litesvm and its variants. - Changed TypeScript module resolution from commonjs to nodenext. * chore: Remove deprecated bankrun and related stuff
1 parent e754bb3 commit 231573d

File tree

6 files changed

+187
-163
lines changed

6 files changed

+187
-163
lines changed

basics/pda-rent-payer/anchor/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22
"type": "module",
33
"dependencies": {
44
"@coral-xyz/anchor": "0.32.1",
5-
"@solana/web3.js": "^1.95.2"
5+
"@solana/web3.js": "^1.95.2",
6+
"litesvm": "^0.4.0"
67
},
78
"devDependencies": {
89
"@types/bn.js": "^5.1.0",
910
"@types/chai": "^4.3.0",
1011
"@types/mocha": "^9.0.0",
11-
"anchor-bankrun": "^0.4.0",
1212
"chai": "^4.3.4",
1313
"mocha": "^9.0.3",
14-
"solana-bankrun": "^0.3.0",
1514
"ts-mocha": "^10.0.0",
1615
"typescript": "^4.3.5"
1716
}

basics/pda-rent-payer/anchor/pnpm-lock.yaml

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

basics/pda-rent-payer/anchor/tests/bankrun.test.ts

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)