Skip to content

Commit d9ff6d8

Browse files
authored
feat: Add LiteSVM tests for the Repository-Layout anchor program (#483)
* feat: add LiteSVM tests for repository-layout anchor program * Implement tests for various interactions at the carnival, including going on rides, playing games, and eating food. * Introduce a utility function to create and send transactions for the defined interactions. * Utilize LiteSVM and Anchor for testing the carnival program's functionality. * chore: update TypeScript configuration and import path * Change module setting in tsconfig.json from "commonjs" to "nodenext" for improved module resolution. * Update import statement in test.ts to include the file extension for Carnival type import. * chore: add litesvm dependency to anchor package.json and update pnpm-lock.yaml * Added litesvm version 0.4.0 to dependencies in package.json. * Updated pnpm-lock.yaml to include litesvm and its associated packages for various platforms. * chore: remove deprecated bankrun test file and related packages
1 parent 2212a32 commit d9ff6d8

File tree

6 files changed

+346
-197
lines changed

6 files changed

+346
-197
lines changed

basics/repository-layout/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.95.2",
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
}

basics/repository-layout/anchor/pnpm-lock.yaml

Lines changed: 157 additions & 83 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)