Skip to content

Commit b8a5d10

Browse files
committed
token-2022 default-account-state pinocchio: switch test stack to mocha+tsx
Per #656 / AGENTS.md 'do not deviate' rule: replace ts-mocha with 'mocha --import=tsx', bump @solana/kit to ^7 and the mocha/chai/tsx/types devDeps to match the token-2022/non-transferable reference, and align tsconfig. Regenerated pnpm-lock.yaml. Verified: tsc --noEmit clean and 'pnpm build-and-test' passes on the litesvm path.
1 parent 53f4ff6 commit b8a5d10

3 files changed

Lines changed: 1485 additions & 494 deletions

File tree

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
22
"type": "module",
33
"scripts": {
4-
"test": "pnpm ts-mocha -p ./tsconfig.json -t 1000000 ./tests/test.ts",
4+
"test": "mocha --import=tsx -t 1000000 ./tests/test.ts",
55
"build-and-test": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./tests/fixtures && pnpm test",
66
"build": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./program/target/so",
77
"deploy": "solana program deploy ./program/target/so/program.so"
88
},
99
"dependencies": {
1010
"@solana-program/system": "^0.12.2",
1111
"@solana-program/token-2022": "^0.12.0",
12-
"@solana/kit": "^6.10.0",
12+
"@solana/kit": "^7.0.0",
1313
"@solana/sysvars": "^6.10.0",
1414
"borsh": "^2.0.0",
1515
"litesvm": "^1.3.0"
1616
},
1717
"devDependencies": {
18-
"@types/chai": "^4.3.1",
19-
"@types/mocha": "^9.1.1",
20-
"@types/node": "^20.0.0",
21-
"chai": "^4.3.4",
22-
"mocha": "^9.0.3",
23-
"ts-mocha": "^10.0.0",
24-
"typescript": "^5.6.0"
18+
"@types/chai": "^5.2.3",
19+
"@types/mocha": "^10.0.10",
20+
"@types/node": "^26.1.0",
21+
"chai": "^6.2.2",
22+
"mocha": "^11.7.5",
23+
"typescript": "^5.9.3",
24+
"tsx": "^4.19.2"
2525
}
2626
}

0 commit comments

Comments
 (0)