Back to Plate

Coverage Priority Map Post Mixed Utility

docs/plans/2026-03-24-coverage-priority-map-post-mixed-utility.md

53.0.54.1 KB
Original Source

Coverage Priority Map Post Mixed Utility

Inputs

  • Coverage source: lcov.info
  • Constraints:
    • exclude /react
    • no coverage vanity
    • score only files worth real unit or editor-contract tests
    • penalize recently swept packages so reopened crumbs do not crowd out untouched seams

Coverage Run

  • Command: bun test --coverage --coverage-reporter=lcov --coverage-dir=.coverage-repo-2026-03-24d --reporter=dots
  • Result: 2750 pass, 0 fail, 541 files, 2.53s

Scoring Rules

  • Scope is packages/**/src/**.
  • /react, React-import files, test files, barrels, generated files, type-only files, and obvious browser-heavy seams score 0.
  • Higher scores go to deterministic transforms, queries, parser or serializer helpers, plugin overrides, and small pure utilities with meaningful uncovered logic.
  • Tiny leftover gaps get zeroed when they are not worth reopening.
  • Recent sweeps are penalized on purpose.

Strong Take

The best next work is not another broad package sweep.

Do this in order:

  1. @udecode/react-hotkeys
  2. docx revisit, but only the deterministic cleaner and plugin seams
  3. one-file surgical seams:
    • toggle/someToggle.ts
    • suggestion/findSuggestionNode.ts
  4. only then reopen recent packages like autoformat, markdown, list, or list-classic

Why:

  • @udecode/react-hotkeys still has untouched pure utility logic and has not had the same coverage sweep treatment.
  • docx still has real deterministic helper value, but it is a revisit, not a fresh frontier.
  • toggle and suggestion each have one honest seam left.
  • most other raw package totals are inflated by already-swept leftovers, DOM-ish dust, or low-signal crumbs.

Best Remaining Files

Package Order By Real Value

  1. @udecode/react-hotkeys
  2. docx
  3. toggle
  4. suggestion
  5. autoformat
  6. markdown
  7. media
  8. list
  9. list-classic
  10. code-drawing

Raw Package Totals Caveat

Raw package totals still overstate:

  • docx
  • autoformat
  • list
  • slate
  • list-classic

That is because what remains there is mostly revisit work, already-swept crumbs, or DOM-ish dust. Use the sorted recommendations above, not raw totals alone.

Skip For Now

  • resizable
  • @udecode/cn
  • type-only leftovers in @udecode/utils
  • DOM-ish slate/internal/dom-editor
  • reopening just-swept core, docx-io, basic-styles, selection, or emoji without a real seam

Full Data

The exhaustive scoring lives here:

Those TSVs contain:

  • every package with a scored package rollup
  • every file still worth testing with its score, coverage, uncovered lines, and scoring reasons