Commit 4703812
authored
Add LiteSVM Tests for Cross-Program Invocation Anchor program (#473)
* feat: add LiteSVM tests for cross-program invocation in Anchor
* Implement tests for initializing and interacting with the lever program using LiteSVM.
* Validate state changes and transaction handling for the power account.
* Ensure proper serialization and deserialization of instruction data.
* chore: update @solana/web3.js and add litesvm dependency in package.json
* chore: update TypeScript configuration for Anchor project
* Change target and module to ES2020 and nodenext respectively.
* Update library to ES2020 for improved compatibility.
* refactor: replace cpi.ts with test.ts for improved cross-program invocation testing
* Introduce test.ts with enhanced tests for initializing and interacting with the lever program.
* Include assertions to validate state changes and account information.
* Remove outdated cpi.ts test file.
* chore: remove deprecated dependencies and test file for bankrun
* Remove outdated bankrun.test.ts file to clean up the project structure.
* Delete anchor-bankrun and solana-bankrun dependencies from package.json and pnpm-lock.yaml.1 parent 6a712e5 commit 4703812
7 files changed
Lines changed: 387 additions & 233 deletions
File tree
- basics/cross-program-invocation/anchor
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
0 commit comments