Back to Plate

Broad Bun Suite Health Fix

docs/plans/2026-03-25-broad-bun-suite-health-fix.md

53.0.53.7 KB
Original Source

Broad Bun Suite Health Fix

Goal

Make the broad Bun package-graph sweep honest again after the non-React coverage passes.

Scope

  • Reproduce the shared failure in the broad Bun package-graph run.
  • Find the first real shared root cause instead of blaming random product files.
  • Fix the smallest honest seam.
  • Re-run the broad Bun sweep plus build-first verification for touched packages.

Phase Plan

  • [completed] Reproduce the broad Bun failure and narrow the first shared culprit
  • [completed] Fix the first shared suite-health root cause
  • [completed] Re-run the broad Bun sweep
  • [completed] Run build, typecheck, lint, and capture reusable learning

Findings

Outcome

  • Broad Bun package-graph sweep is green again.
  • The product code in SlateExtensionPlugin was not the root cause.
  • The actual fix was test-harness cleanup:

Verification

  • Repro combo:
    • bun test packages/link/src/react/utils/getLinkAttributes.spec.ts packages/link/src/react/utils/floatingLinkTriggers.spec.ts
  • Table pair:
    • bun test packages/table/src/react/components/TableCellElement/setSelectedCellsBorder.spec.tsx packages/table/src/react/hooks/useTableMergeState.spec.tsx
  • Package slice:
    • bun test packages/table/src
  • Broad sweep:
    • bun test packages/link/src packages/markdown/src packages/core/src packages/autoformat/src packages/basic-nodes/src packages/table/src packages/list-classic/src packages/suggestion/src
  • Noise cleanup:
    • bun test packages/core/src/react/stores/element/useElementStore.spec.tsx
  • Build-first gate:
    • pnpm install
    • pnpm turbo build --filter=./packages/link --filter=./packages/table
    • pnpm turbo typecheck --concurrency=1 --filter=./packages/link --filter=./packages/table
    • pnpm lint:fix

Learning