Files
ComfyUI_frontend/packages
Glary-Bot 145fd3909f test(validation): add unit coverage for useWorkflowValidation and linkRepair abort paths
Codecov flagged the patch at 53% with the new `useWorkflowValidation`
composable at 1.85% and `linkRepair`'s new abort branches uncovered.
This adds:

- `useWorkflowValidation.test.ts` (8 tests) covering: schema-fail
  fallback, no-error happy path, topology summary toast capping at
  `TOPOLOGY_TOAST_LIMIT`, links-fixed success toast, abort returning
  `null`, re-throw of unexpected exceptions, the clone-before-repair
  contract, and silent-mode suppression. `vue-i18n`, the toast store,
  the package, the schema validator, and `@/scripts/utils` are all
  mocked out.
- `linkRepair.test.ts` (5 tests) covering the
  `LinkRepairAbortedError` shape, its formatted message for every
  `TopologyError.kind`, the live-graph branch (`getNodeById` plus
  record-shaped `graph.links`), and the not-found `continue` path
  in the splice loop.
2026-05-04 21:41:32 +00:00
..