Skip to content

Commit ee2aaa2

Browse files
authored
feat: Add LiteSVM tests for the Program Derived Addresses anchor program (#479)
* feat: add LiteSVM tests for page visit tracking in Anchor program * Implement tests for creating and incrementing page visit counts using LiteSVM. * Update existing test structure to include assertions for page visit tracking. * Refactor test descriptions for clarity. * chore: add and update dependencies in anchor package.json and pnpm-lock.yaml * Upgrade @solana/web3.js to version 1.98.4. * Add litesvm dependency with version 0.4.0. * Update TypeScript module resolution in tsconfig.json to nodenext. * chore: remove deprecated bankrun and related stuff * Delete bankrun test file to clean up the codebase. * Remove anchor-bankrun and solana-bankrun dependencies from package.json and pnpm-lock.yaml.
1 parent 8143091 commit ee2aaa2

File tree

6 files changed

+283
-186
lines changed

6 files changed

+283
-186
lines changed

basics/program-derived-addresses/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.98.4",
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
}

0 commit comments

Comments
 (0)