Testing options
Use these commands depending on what you want to verify.
1) Unit/integration test suite (Vitest)
bash
npm testRuns the project test suite and regenerates fixtures first (pretest).
2) TypeScript compile checks (no emit)
bash
npm run lintConfirms the codebase type-checks cleanly.
3) Production build
bash
npm run buildCompiles CLI sources to dist/.
4) Docs build (GitHub Pages artifact parity)
bash
npm run docs:buildBuilds the VitePress static site exactly like the Pages workflow.
5) Example end-to-end CLI run
bash
npx tsx src/cli.ts audit --stdio "node fixtures/servers/hello-mcp-server/server.cjs" --out reports --fail-on offThis is a practical smoke test that exercises transport, rules, and report generation.
Minimal local validation flow
bash
npm run lint && npm test && npm run build && npm run docs:buildSSE smoke test
bash
node fixtures/servers/sse-mcp-server/server.cjs
# new terminal
node dist/cli.js audit --sse "http://127.0.0.1:4013/sse" --sse-post "http://127.0.0.1:4013/message" --out reports --fail-on offPublished npm package smoke test
bash
npm run npm:test-runThis executes the package from npm and prints CLI help to verify install/entrypoint integrity.