Skip to content

Commit 550af2d

Browse files
authored
Add LiteSVM tests for create-account Anchor program (#472)
* feat: add LiteSVM test for creating a system account in Anchor - Implement test for creating a system account using LiteSVM - Include transaction creation and assertion for account lamports * chore: add litesvm dependency and update dependencies in package.json 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 * fix: correct test description and import path for type error * chore: update TypeScript configuration for create-account anchor - Change target and module to es2020 and nodenext - Update lib to es2020 for improved compatibility * chore: remove deprecated bankrun test and dependencies - Delete bankrun.test.ts as it is no longer needed - Remove anchor-bankrun and solana-bankrun dependencies from package.json and pnpm-lock.yaml
1 parent 4703812 commit 550af2d

6 files changed

Lines changed: 245 additions & 195 deletions

File tree

basics/create-account/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.4.1",
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)