Skip to content

Commit 320238c

Browse files
authored
feat: Add LiteSVM Test for Anchor Account Data Example (#466)
* feat: add litesvm dependency to anchor package.json * feat: update Anchor.toml with litesvm test scripts and add litesvm * feat: add LiteSVM test for account data operations for anchor program * refactor: clean up Anchor.toml and litesvm test by removing commented code * chore: remove bankrun test, script and dependencies from Anchor.toml and package.json * chore: update test script formatting in Anchor.toml
1 parent e7aca08 commit 320238c

File tree

5 files changed

+273
-149
lines changed

5 files changed

+273
-149
lines changed

basics/account-data/anchor/Anchor.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ cluster = "Localnet"
1313
wallet = "~/.config/solana/id.json"
1414

1515
[scripts]
16-
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
16+
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
17+
litesvm-test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/litesvm.test.ts" #For litesvm test

basics/account-data/anchor/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
"@types/bn.js": "^5.1.0",
88
"@types/chai": "^4.3.0",
99
"@types/mocha": "^9.0.0",
10-
"anchor-bankrun": "^0.4.0",
1110
"chai": "^4.3.4",
11+
"litesvm": "^0.3.3",
1212
"mocha": "^9.0.3",
13-
"solana-bankrun": "^0.3.0",
1413
"ts-mocha": "^10.0.0",
1514
"typescript": "^4.3.5"
1615
},

0 commit comments

Comments
 (0)