Commit 6a712e5
authored
Add LiteSVM Tests for Favorites Anchor program (#474)
* feat: add LiteSVM tests for favorites anchor program
- Implement tests for writing, updating, and validating favorite data on the blockchain.
- Ensure unauthorized transactions are rejected correctly.
- Utilize LiteSVM for transaction simulation and account state verification.
* chore: update dependencies in anchor 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.
* chore: update TypeScript configuration for anchor package
- Change target and module to es2020 and nodenext respectively.
- Update lib to include es2020 for improved compatibility.
* refactor: improve favorites test structure and error handling
- Update test descriptions for clarity.
- Replace deprecated error handling with assertions for unauthorized signer checks.
- Simplify transaction execution and data validation for favorites.
- Ensure consistent usage of BN for big number handling.
* chore: rename the filename for consistency and update test script
* chore: remove deprecated bankrun and related stuff
- Delete @solana-developers/helpers and related references from package.json and pnpm-lock.yaml.
- Remove favorites-bankrun.test.ts and system-errors.ts files as they are no longer needed.
- Clean up the project structure by eliminating obsolete code and dependencies.1 parent 024e8a0 commit 6a712e5
9 files changed
Lines changed: 384 additions & 359 deletions
File tree
- basics/favorites/anchor
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
0 commit comments