Skip to content

test: raise coverage thresholds and add missing query tests#295

Open
seandonn-boston wants to merge 6 commits intomainfrom
claude/test-2.15.74-coverage-threshold-eD2yL
Open

test: raise coverage thresholds and add missing query tests#295
seandonn-boston wants to merge 6 commits intomainfrom
claude/test-2.15.74-coverage-threshold-eD2yL

Conversation

@seandonn-boston
Copy link
Owner

Summary

Raises test coverage thresholds from 80% to 85% for functions, lines, and statements. Adds missing tests for uncovered query branches (getNatureList, searchNatures, getItemsByEvolution, ability sortByCount).

Branch coverage remains at 80% threshold — the project's current branch coverage is 80.6%, which doesn't provide enough margin for 85%. Raising branch coverage to 85% would require extensive test additions across complex UI components (ChartWrappers, ConstellationCanvas, SearchCommand) and is tracked as future work.

Changes

  • config/jest.config.js: Raised functions/lines/statements thresholds from 80% → 85%
  • src/lib/queries/natures.test.ts: Added 9 tests for getNatureList and searchNatures (covering search, sort, pagination branches)
  • src/lib/queries/items.test.ts: Added 3 tests for getItemsByEvolution (covering empty results, null filtering)
  • src/lib/queries/abilities.test.ts: Added 2 tests for in-memory sortByCount branch (ascending + descending)

Testing

  • Unit tests: 14 new tests added across 3 query test files
  • Pipeline: All 10 steps passing
  • Coverage: Stmts 91.1%, Branches 80.6%, Funcs 92.9%, Lines 92.3% — all above thresholds

Impact

  • Files changed: 4
  • New dependencies: None
  • Database changes: None
  • Breaking changes: None

Task Reference

Saga task: 2.15.74 — Increase branch coverage buffer from 81% to ~85% (partial — branches remain at 80%)


Automated by pkdx++ autoloop — session eD2yL cycle 3

seandonn-boston and others added 6 commits February 18, 2026 08:23
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Raise functions/lines/statements thresholds from 80% to 85%. Add tests
for getNatureList, searchNatures, getItemsByEvolution, and ability
sortByCount branches.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant