Why truepass
What truepass checks that a test-style lint plugin does not: a reason on every skip, fixed sleeps, retries, and, from the diff, assertions moved to a weaker matcher and snapshots rewritten with no reason; and what it leaves out on purpose. Compared with @vitest/eslint-plugin.
A test suite can be made to pass in two ways: fix the code, or make the suite check less. The
second is quicker, it passes CI, and from the outside it looks the same. The cheap forms are well
known: a .only, a skip, a retry, a longer sleep, a looser matcher, -u on the snapshots. Each
one removes a claim the suite used to make.
truepass reports those, and only those. Its intent puts the reason in four words, "agents make red suites green" (the intent): an agent asked for a passing suite reaches for the same shortcuts a hurried person does. Each finding names its fix in the message, so the agent that made the shortcut can undo it without opening the docs.
What it does that a test-style plugin does not
@vitest/eslint-plugin is a broad plugin about how tests are written: titles, hooks, expect
calls, matcher style. truepass is narrow, and covers two of its rules (no-focused-tests and
no-disabled-tests) under its own names. Beyond those two:
- A skip can carry its reason.
no-unexplained-skipaccepts a skip with an issue link, a decision id or an unexpired date in a comment, and reports one whose date has passed. A rule that reports every skip pushes a team to turn it off; one that asks for a reason can stay on. Skipped tests. - Fixed sleeps and retries.
no-fixed-sleepandno-test-retryreport the two usual ways a flaky test is made to look stable, in test files and in runner configs. Sleeps and retries. - What a change did.
truepass diffreads the changed lines and commit messages since a base, and reports an assertion moved to a weaker matcher on the same subject and a snapshot changed with noSnapshot:line saying why. A lint rule reads one version of a file and cannot see either. truepass diff. - A call is a test only when it is one. Every rule checks that the call's root is a test-runner
name that is an unbound global or imported from a test-runner module, so a program's own
only()or anitfrom your own module is never reported. - One finding shape for people and agents. Every message is "what is wrong: why it matters.
fix: what to do".
truepass diff --jsonprints the same findings as burgee's--jsonenvelope, andtruepass --mcpservesdiffas a read-only tool. For agents.
What it leaves out on purpose
- Test style. Titles, hook order,
expectvalidity, matcher preferences such asprefer-to-be: none of these makes a suite check less, so truepass has no rule for them. Keep@vitest/eslint-pluginfor them; the two run side by side. - Coverage drops. A coverage tool already gates those (the spec's out of scope).
- Mutation score. That is oxmutate's job.
- Whole files in the diff check.
truepass diffreads only the changed lines and the commit messages. Reading whole files would be slower and would hand a model more to read than the check needs. - A severity per matcher.
MATCHER_RANKis one ordering. A weakening is either explained in the commit message or reported. - Matchers outside the table. Six matchers are ranked:
toBe,toStrictEqual,toEqual,toMatchObject,toBeTruthyandtoBeDefined. Others are not read until a missed weakening shows one is needed.
The evidence
truepass's 1.0 was cut on D-20261124-verification-family-1-0, which records its measurements on 2026-11-24:
| Measure | Result |
|---|---|
| tests | 201 |
| statements / branches / lines | 388 / 388, 265 / 265, 282 / 282 |
| mutation (oxmutate, full run) | 907 killed, 1 timeout, 0 survived: 100% |
No suite is graded against truepass, so there is no compatibility figure: it does not claim to be
a drop-in for any plugin. How fast it lints against @vitest/eslint-plugin is unmeasured.
burgee runs it on itself: the four rules at error over its own tests, its earlier findings in an
ESLint suppressions file, and truepass diff on every push
(The suppressions file).
Hooks and CI
Run truepass where a weakened suite is caught before it merges: the lint rules in the lint step, truepass diff on pre-push through hookset's hook:test-integrity station or a plain lefthook or husky hook, and both in CI with the history the diff needs.
Coming from @vitest/eslint-plugin
Which @vitest/eslint-plugin rules truepass covers (no-focused-tests and no-disabled-tests, under its own names), which it does not, how to run the two side by side, and what truepass adds: sleeps, retries and the pre-push diff check. A @vitest/eslint-plugin migration path.