Skip to content

QA-PW-117 — describe.serial without justification ​

← Back to the rule catalog

Generated from the rule registry. Get the same detail from the CLI with mjolnir explain QA-PW-117.

FieldValue
Severitywarning
Confidencehigh
Tiercore
Measured FP rate0% (n=35)
Evidence levelE2
QA impactTest hygiene debt (HYGIENE)
False-positive risk (author estimate)low
Autofix availableno
Languagestypescript, javascript
Frameworksplaywright
Detection strategyLEXICAL
Introduced inv0.3.0

Why this fails in production ​

Serial mode turns any single failure into a cascade for everything after it — it should be an explicit, documented trade-off.

What gets flagged (real detector output) ​

`test.describe.serial` without a justification comment.

Example from this rule's own must-fire fixture: tests/fixtures/QA-PW-117/must-fire/serial.spec.ts

The fix ​

Add a comment explaining why order matters, or refactor tests to be independent.

Confirmed NOT to fire on the corresponding clean pattern ​

Verified against tests/fixtures/QA-PW-117/must-not-fire/justified.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
keycloak-keycloak98
positive-fixtures4
sveltejs-kit1

Released under the MIT License.