Sol.College

Full lesson

testship

Test Anchor programs without writing tests

What it does

From the project README:

[](https://www.npmjs.com/package/@blockchain-hq/testship) [](https://www.npmjs.com/package/@blockchain-hq/testship) [](https://github.com/blockchain-hq/testship/stargazers) [](https://opensource.org/licenses/MIT)
Original
blockchain-hq/testship
SuperStack fork
Blockchains/testship @ d29a85f
Stars
13
Last push (original)
2026-07-16
Languages
TypeScript, CSS, JavaScript, HTML
Detected stack
web3.js
Categories
Infrastructure & Tooling
Licence
MIT
Homepage
https://www.testship.xyz/

Architecture

134 source files. By extension: .tsx ×105, .ts ×27, .js ×2.

Top-level directorySource files
ui126
cli4
shared2
server2

Dapp: devnet deploy pending

⏳ Devnet deploy pending — goes live when the devnet wallet is topped up. This fork's own dapp is not deployed yet, so there is no program address or transaction to show. It is queued in dapp-queue.txt; once devnet SOL is available it is deployed, exercised with real devnet transactions, and this section switches to the live dapp at /dapps/testship/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.

Key code, explained

Excerpts chosen automatically where the code uses the most Solana concepts, pinned to the fork's commit.

blockchain-hq/testship · ui/src/hooks/useSPLToken.tsx L1–24 @ d29a85f · MIT · original
import { useConnection, useWallet } from "@solana/wallet-adapter-react";import { useCallback, useState } from "react";import {  createInitializeMintInstruction,  createAssociatedTokenAccountInstruction,  createMintToInstruction,  createTransferInstruction,  getAssociatedTokenAddress,  getMint,  getAccount,  TOKEN_PROGRAM_ID,  MINT_SIZE,} from "@solana/spl-token";import {  PublicKey,  SystemProgram,  Transaction,  Keypair,} from "@solana/web3.js"; interface TokenInfo {  mint: string;  decimals: number;  tokenAccount?: string;
  1. Line 6 createMintToInstruction,: Mints new tokens. The mint authority must sign.
  2. Line 7 createTransferInstruction,: An SPL token transfer through the Token Program.

How to run, build and test

These commands come from the repo's own manifests (package.json scripts, Anchor.toml, Cargo, go.mod, Makefile). Check the README for prerequisites and environment variables.

DirectoryCommandRuns
.npm run devtsx cli/index.ts
.npm run buildtsc && cd ui && npm run build && cd .. && chmod +x dist/cli/index.js
.npm run testvitest
uinpm run devvite
uinpm run buildtsc -b && vite build && cp -r dist/* ../dist/ui/
uinpm run linteslint .

What you could build from it