Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

quality.testing

Remove focused or exclusive tests before merge

Focused tests such as it.only or describe.only should not ship because they silence the rest of the suite in CI.

#Metadata

Rule ID
ts.testing.no-focused-test
Severity
medium
Confidence
0.88
Languages
javascript, typescript
Presets
recommended, strict
Stability
experimental
Applies to
block
Tags
ci, quality, rules-catalog, testing

#Why it matters

Exclusive tests hide failures in sibling cases and are a common accidental merge footgun.

#Remediation

Remove `.only` / `fit` / `fdescribe` style exclusivity and rely on the full suite in CI.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.testing.no-focused-test.rule.yaml.