Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

quality.testing

Update tests when branch-heavy service logic changes

Diffs that touch many branches in critical service paths should update paired tests in the same change.

#Metadata

Rule ID
ts.testing.no-missing-edge-case-tests
Severity
medium
Confidence
0.66
Languages
javascript, typescript
Presets
recommended, strict
Stability
experimental
Applies to
project
Tags
diff, quality, rules-catalog, testing

#Why it matters

Branch-heavy edits without test updates often miss boundary and failure behavior reviewers expect.

#Remediation

Extend the paired unit test with cases for new branches, guards, and failure paths touched by the diff.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.testing.no-missing-edge-case-tests.rule.yaml.