Skip to content

QA-TQUAL-011 — Commented-out test ​

← Back to the rule catalog

Generated from the rule registry. Get the same detail from the CLI with mjolnir explain QA-TQUAL-011.

FieldValue
Severitywarning
Confidencehigh
Tierextended
Measured FP rate24% (n=25)
Evidence levelE2
QA impactTest hygiene debt (HYGIENE)
False-positive risk (author estimate)medium
Autofix availableno
Languagestypescript, javascript
Frameworksjest, vitest, playwright
Detection strategyLEXICAL (regex heuristic)
Introduced inv0.2.0

Why this fails in production ​

Disabled tests hide known-unverified behavior behind a green checkmark and rot silently.

What gets flagged (real detector output) ​

Commented-out test detected.

Example from this rule's own must-fire fixture: tests/fixtures/QA-TQUAL-011/must-fire/commented.spec.ts

The fix ​

Re-enable the test, or delete it with a tracked issue referencing what it covered.

Confirmed NOT to fire on the corresponding clean pattern ​

Verified against tests/fixtures/QA-TQUAL-011/must-not-fire/clean.spec.ts — a legitimate, similar-looking pattern this rule correctly leaves alone.

Corpus-measured false-positive risk ​

Real occurrence counts from npm run corpus:audit against actively-maintained OSS repos — reproduce yourself, don't just trust this table (see the false-positive audit):

RepoOccurrences
appsmithorg-appsmith6
calcom-cal2
getsentry-sentry1
grafana-grafana2
nocodb-nocodb1
playwright-community-eslint-plugin-playwright2
positive-fixtures6
vercel-next-js1
vitest-dev-vitest4
yarnpkg-berry2

Released under the MIT License.