Skip to content

Quelltest for npm

Quelltest for npm (package quelltest, version 0.3.1, Apache-2.0) is a free command-line tool that checks whether JavaScript and TypeScript tests would fail if the code were wrong, detects when a change weakens tests, and lists risky edges that no test executes. Use it when an AI agent or a teammate writes tests and you want evidence that they protect the code. It works with Jest, Vitest, Mocha and node:test, runs offline, and never sends code anywhere.

npm install --save-dev quelltest
npx quell verify tests/pay.test.js --source src/pay.js --runner jest
npx quell gate --diff origin/main
npx quell find src --diff origin/main --coverage coverage/coverage-final.json

What are the three checks?

CheckQuestion it answersCommand
VerifyWould this test fail if the code were wrong?quell verify TEST --source FILE
GateDid this change weaken the tests (deleted, skipped, loosened)?quell gate --diff REF
FindWhich risky edges in my code have no test that runs them?quell find [PATH]

verify and gate are the reason the package exists. find, score and generate are the older half: a static scanner that ranks candidates, a score based on your coverage data, and a generator that writes tests for simple guards.

Which command do I run?

I want toRunPage
Check a test I (or an agent) just wrotequell verifyHow verify works
Fail CI when a pull request weakens testsquell gate --diff origin/mainThe test gate
See risky untested code in my changequell find --diff origin/main --coverage FILERule pack
Get a number for CIquell score --threshold 60CLI reference
Write tests for guardsquell generate --verify --writeQuickstart
Check my stubs against recorded API responsesquell mocks --examples FILECode that calls APIs
Let a coding agent run the checksquell mcpMCP server and hooks

What does it execute?

Only verify runs your code, and only your own tests (or your own --command). Scanning, scoring, generating and gating are static: they parse source with Babel and read git. See privacy.

What are the requirements?

Node.js 20 or newer for the version you can install today (0.3.1). The next release requires Node.js 22.18+ or 24.11+ because its parser dependency moved to @babel/parser 8. See installation.

Where next?

Using Python instead? See the Python quickstart.