mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-13 17:26:22 +00:00
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.