Getting it into your agent
There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.
Wrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/solanabr/solana-glossary/test-typescript)<a href="https://agentmods.dev/commands/solanabr/solana-glossary/test-typescript"><img src="https://agentmods.dev/badge/commands/solanabr/solana-glossary/test-typescript.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00012 | $0.02432 |
| Opus 5 | $0.00006 | $0.01216 |
| Sonnet 5 | $0.00002 | $0.00486 |
| Haiku 4.5 | $0.00001 | $0.00243 |
Grade A, and why
test-typescript scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
const vault = await program.account.vault.fetch(vaultPda); This is a copy
100% identical to test-ts — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 405 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are running TypeScript tests. This command covers Anchor program tests, frontend component tests, and integration tests.
Related Skills
- testing.md - Testing strategy details
- frontend-framework-kit.md - React/Next.js patterns
- programs/anchor.md - Anchor test patterns
Step 1: Identify Test Type
echo "🔍 Detecting TypeScript test configuration..."
# Check for Anchor tests
if [ -f "Anchor.toml" ] && [ -d "tests" ]; then
echo "⚓ Anchor TypeScript tests detected"
fi
# Check for Vitest
if grep -q "vitest" package.json 2>/dev/null; then
echo "⚡ Vitest configured"
fi
# Check for Jest
if grep -q "jest" package.json 2>/dev/null; then
echo "🃏 Jest configured"
fi
# Check for Playwright
if grep -q "playwright" package.json 2>/dev/null; then
echo "🎭 Playwright E2E tests configured"
fi
Anchor Program Tests
Run Anchor Tests
echo "⚓ Running Anchor TypeScript tests..."
# Build first
anchor build
# Run all tests
anchor test
# Skip rebuild (faster iteration)
anchor test --skip-build
# Run specific test file
anchor test tests/vault.ts
# Run with logs
RUST_LOG=debug anchor test
Anchor Test Pattern
import * as anchor from "@coral-xyz/anchor";
import { Program } from "@coral-xyz/anchor";
import { MyProgram } from "../target/types/my_program";
import { expect } from "chai";
describe("my_program", () => {
const provider = anchor.AnchorProvider.env();
anchor.setProvider(provider);
const program = anchor.workspace.MyProgram as Program<MyProgram>;
it("initializes vault", async () => {
const [vaultPda] = anchor.web3.PublicKey.findProgramAddressSync(
[Buffer.from("vault"), provider.wallet.publicKey.toBuffer()],
program.programId
);
await program.methods
.initialize()
.accounts({
vault: vaultPda,
authority: provider.wallet.publicKey,
systemProgram: anchor.web3.SystemProgram.programId,
})
.rpc();
const vault = await program.account.vault.fetch(vaultPda);
expect(vault.authority.toString()).to.equal(
provider.wallet.publicKey.toString()
);
});
it("deposits funds", async () => {
const [vaultPda] = anchor.web3.PublicKey.findProgramAddressSync(
[Buffer.from("vault"), provider.wallet.publicKey.toBuffer()],
program.programId
);
const depositAmount = new anchor.BN(1_000_000_000); // 1 SOL
await program.methods
.deposit(depositAmount)
.accounts({
vault: vaultPda,
authority: provider.wallet.publicKey,
})
.rpc();
const vault = await program.account.vault.fetch(vaultPda);
expect(vault.balance.toNumber()).to.equal(depositAmount.toNumber());
});
it("fails with insufficient funds", async () => {
const [vaultPda] = anchor.web3.PublicKey.findProgramAddressSync(
[Buffer.from("vault"), provider.wallet.publicKey.toBuffer()],
program.programId
);
try {
await program.methods
.withdraw(new anchor.BN(999_000_000_000)) // More than balance
.accounts({
vault: vaultPda,
authority: provider.wallet.publicKey,
})
.rpc();
expect.fail("Should have thrown");
} catch (err) {
expect(err.message).to.include("InsufficientFunds");
}
});
});
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 405 lines · 12 tokens per session scan A 20b8eb1a76f4
test-typescript is a command published in the GitHub repository solanabr/solana-glossary (19 stars, last pushed 25d ago), licensed MIT. It adds 12 tokens to every session and 2,432 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to test-ts, differing in 0 lines, and is treated as a copy.
Other commands, from other repositories
review-epo-claims
Analyze patent claims for EPO Art. 84 EPC compliance - clarity, conciseness, support by description.
discuss
5-phase requirements-elicitation interview that produces an EARS-validated context/ .md.
ingest-dev
Ingest a URL, directory, or file into your knowledge base. remember = a specific durable fact, ingest = a URL, learn = a distilled lesson that gets retrieval preference.
resume
Auto-detect and resume any interrupted Plan Cascade task. Detects mega-plan, hybrid-worktree, or hybrid-auto context and routes to the appropriate resume command.
review-video
Make a " Reviews" video — a fast, faceless VO montage of REAL, verified competitor reviews that names the recurring complaints and positions YOUR business as the alternative, then hands off to your own customer testimonials.
next
You just finished a slash command or a batch of work. The user monitors via Farmer on their phone and cannot see CLI text output.