Back to Plate

Coverage Priority Refresh Post Batch

docs/plans/2026-03-24-coverage-priority-map-refresh-post-batch.md

53.0.56.0 KB
Original Source

Coverage Priority Refresh Post Batch

Inputs

  • Coverage source: lcov.info
  • Constraints: exclude /react, skip browser and UI-heavy packages, and score only files worth direct unit or editor-contract tests.
  • Sync basis: March 17, March 22, March 23, and earlier March 24 maps, plus the coverage work completed since then.

Coverage Run

  • Command: bun test --coverage --coverage-reporter=lcov --coverage-dir=.coverage-repo-2026-03-24b --reporter=dots
  • Result: 2687 pass, 0 fail, 510 files, 2.37s

Scoring Rules

  • Scope is packages/**/src/**.
  • /react, React-import files, browser packages, tests, barrels, dist, and type-only files score 0.
  • Higher scores go to deterministic transforms, queries, parser or serializer helpers, plugin overrides, and small pure utilities with low coverage.
  • Recent sweeps are penalized on purpose so already-worked packages do not keep crowding out untouched work.
  • Data-only constants and thin leftover gaps get pushed down.

Strong Take

The honest next work is not another big package sweep.

Do the untouched score-7+ seam files first:

tag

toggle

slash-command

mention

udecode/cmdk

tabbable

juice

docx revisit

docx-io revisit

emoji utility revisit

After that, the next reopen-worthy work is a small docx / docx-io revisit. Those packages still have deterministic leftovers, but they are second-tier because they were just swept and what remains is less leveraged.

Threshold Counts

  • score >= 10: 2 files
  • score >= 9: 5 files
  • score >= 8: 6 files
  • score >= 7: 8 files
  • score >= 6: 8 files
  • score >= 5: 26 files
  • score >= 4: 56 files
  • score >= 3: 89 files
  • score >= 2: 111 files
  • score >= 1: 400 files

Raw Package Totals

  1. docx — score 35, top file 5
  2. docx-io — score 34, top file 5
  3. core — score 30, top file 5
  4. emoji — score 29, top file 5
  5. basic-styles — score 27, top file 5
  6. slate — score 24, top file 4
  7. tag — score 18, top file 9
  8. dnd — score 15, top file 3
  9. list — score 15, top file 3
  10. list-classic — score 14, top file 4

Best Remaining Files

What I Would Skip For Now

  • selection as a package: still mostly DOM-ish internal machinery, even when a few helpers are technically non-React.
  • recently swept low-signal leftovers in core, slate, table, list, list-classic, markdown, suggestion, autoformat, dnd, basic-styles
  • UI-only packages filtered out by design

Full Data