Skip to content

Commit 765f79c

Browse files
authored
Merge pull request #27 from mikemaccana-edwardbot/fix/block-list-pinocchio-add-tests
fix(block-list/pinocchio): add missing test harness
2 parents da17fda + 77ded28 commit 765f79c

13 files changed

Lines changed: 2970 additions & 87 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
target/
22
test-ledger/
33
node_modules/
4+
# The compiled program is built into tests/fixtures by `pnpm build-and-test`
5+
# (and by CI on every run) so we don't track it.
6+
tests/fixtures/*.so
7+
tests/fixtures/*-keypair.json

tokens/token-extensions/transfer-hook/block-list/pinocchio/package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,21 @@
88
},
99
"scripts": {
1010
"generate-sdks": "pnpx tsx codama.ts",
11-
"test": "mocha --import=tsx ./tests/test.spec.ts"
11+
"test": "node ./tests/run-mocha-with-retry.mjs",
12+
"build-and-test": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./tests/fixtures && pnpm test",
13+
"build": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./program/target/so"
1214
},
1315
"dependencies": {
1416
"@codama/renderers": "^1.0.19",
17+
"@solana/spl-token": "^0.4.13",
18+
"@solana/web3.js": "^1.98.4",
19+
"@types/chai": "^4.3.20",
1520
"@types/mocha": "^10.0.10",
21+
"chai": "^4.3.10",
1622
"codama": "^1.2.11",
17-
"litesvm": "^0.2.0",
23+
"litesvm": "^0.3.0",
1824
"mocha": "^11.1.0",
19-
"solana-bankrun": "^0.4.0",
25+
"ts-mocha": "^11.1.0",
2026
"tsx": "^4.19.3"
2127
},
2228
"devDependencies": {

0 commit comments

Comments
 (0)